How to set options when saving TIF file
-
Is it possible to set the Byte Order and Compression values when saving a TIF?
BaseContainer bc; //What do we set here? bmp->Save(tiffFile, FILTER_TIF, &bc, SAVEBIT::USE16BITCHANNELS);
-
Hello @kbar,
Thank you for reaching out to us. You cannot do what you want to do from the classic API. When we use the classic API interface
BaseBitmap::Save
internally, we always passnullptr
or the empty container when saving aFILTER_TIF
. There is unfortunately no classic API translation layer anymore for this aspect of TIFF saving.But you can get the underlying
ImageRef
withBaseBitmap::GetImageRef
and then use the Image API directly to save things as you want them to be saved:Note that other than in the classic API, image data is expressed by more than one type in the maxon API. To save a plain
ImageRef
, you will have first to insert it into aImageTextureRef
via ::AddChildren, as only it has the::Save
method.Cheers,
Ferdinand