In [TIFFRepresentationUsingCompression:factor:] set extraSamples

and correct compression type if 0.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15245 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2002-12-05 00:37:01 +00:00
parent a741883279
commit 86711c9522

View file

@ -458,6 +458,9 @@
else
info.photoInterp = PHOTOMETRIC_RGB;
info.extraSamples = (_hasAlpha) ? 1 : 0;
if (type == 0)
type = COMPRESSION_NONE;
info.compression = type;
info.quality = (1 - ((float)factor)/255.0) * 100;
info.numImages = 1;