Changeset View
Changeset View
Standalone View
Standalone View
app/imgsaver.h
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | 58 | public: | |||
---|---|---|---|---|---|
96 | * | 96 | * | ||
97 | * @return Status of the save | 97 | * @return Status of the save | ||
98 | * | 98 | * | ||
99 | * @note The @c dir parameter to the constructor is ignored. | 99 | * @note The @c dir parameter to the constructor is ignored. | ||
100 | **/ | 100 | **/ | ||
101 | ImgSaver::ImageSaveStatus saveImage(const QImage *image, | 101 | ImgSaver::ImageSaveStatus saveImage(const QImage *image, | ||
102 | const QUrl &url, | 102 | const QUrl &url, | ||
103 | const ImageFormat &format, | 103 | const ImageFormat &format, | ||
104 | const QString &subformat = QString::null); | 104 | const QString &subformat = QString()); | ||
105 | 105 | | |||
106 | /** | 106 | /** | ||
107 | * Save an image. | 107 | * Save an image. | ||
108 | * | 108 | * | ||
109 | * The image is saved to the @c dir location as specified in the | 109 | * The image is saved to the @c dir location as specified in the | ||
110 | * constructor. Depending on the settings of the application preferences, | 110 | * constructor. Depending on the settings of the application preferences, | ||
111 | * whether @c setImageInfo has previously been called with enough | 111 | * whether @c setImageInfo has previously been called with enough | ||
112 | * information, or the previously remembered settings, this may prompt | 112 | * information, or the previously remembered settings, this may prompt | ||
▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | 193 | #if 0 | |||
195 | * Save an image to a temporary file. | 195 | * Save an image to a temporary file. | ||
196 | * | 196 | * | ||
197 | * @param img The image to save | 197 | * @param img The image to save | ||
198 | * @param format The image format to save in. | 198 | * @param format The image format to save in. | ||
199 | * @param colors The colour depth (bits per pixel) required. If specified, | 199 | * @param colors The colour depth (bits per pixel) required. If specified, | ||
200 | * this must be either 1, 8, 24 or 32. The default is for no colour | 200 | * this must be either 1, 8, 24 or 32. The default is for no colour | ||
201 | * conversion. | 201 | * conversion. | ||
202 | * | 202 | * | ||
203 | * @return The file name as saved, or @c QString::null if there was | 203 | * @return The file name as saved, or @c QString() if there was | ||
204 | * an error. | 204 | * an error. | ||
205 | **/ | 205 | **/ | ||
206 | static QString tempSaveImage(const KookaImage *img, const ImageFormat &format, int colors = -1); | 206 | static QString tempSaveImage(const KookaImage *img, const ImageFormat &format, int colors = -1); | ||
207 | #endif | 207 | #endif | ||
208 | 208 | | |||
209 | 209 | | |||
210 | 210 | | |||
211 | 211 | | |||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |