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::Saveinternally, we always passnullptror 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
ImageRefwithBaseBitmap::GetImageRefand 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 aImageTextureRefvia ::AddChildren, as only it has the::Savemethod.Cheers,
Ferdinand