192{
193
195
196 bool alpha = this->alpha->isChecked();
197 bool interlace = interlacing->isChecked();
198 int compression = (int)compressionLevel->value();
199 bool saveAsHDR = chkSaveAsHDR->isChecked();
200 bool tryToSaveAsIndexed = !saveAsHDR && this->tryToSaveAsIndexed->isChecked();
201 bool saveSRGB = !saveAsHDR && chkSRGB->isChecked();
202 bool forceSRGB = !saveAsHDR && chkForceSRGB->isChecked();
203 bool storeAuthor = chkAuthor->isChecked();
204 bool storeMetaData = chkMetaData->isChecked();
205 bool downsample = chkDownsample->isChecked();
206
207
208 QVariant transparencyFillcolor;
209 transparencyFillcolor.setValue(bnTransparencyFillColor->color());
210
211 cfg->setProperty("alpha", alpha);
212 cfg->setProperty("indexed", tryToSaveAsIndexed);
213 cfg->setProperty("compression", compression);
214 cfg->setProperty("interlaced", interlace);
215 cfg->setProperty("transparencyFillcolor", transparencyFillcolor);
216 cfg->setProperty("saveAsHDR", saveAsHDR);
217 cfg->setProperty("saveSRGBProfile", saveSRGB);
218 cfg->setProperty("forceSRGB", forceSRGB);
219 cfg->setProperty("storeAuthor", storeAuthor);
220 cfg->setProperty("storeMetaData", storeMetaData);
221 cfg->setProperty("downsample", downsample);
222 return cfg;
223}