On 28/06/2018 at 16:49, xxxxxxxx wrote:
Could you check this code? I'm not able to see any difference on saved files. Always saving at same compression.
BaseBitmap \*multiBmp = BaseBitmap::Alloc();
multiBmp->Init(1024,1024, 32);
BaseContainer dataBc, optBc;
optBc.SetInt32(0, (Int32)4); // EXR compressions
optBc.SetBool(1, TRUE); // 16-bit
for(Float i=0;i<360.0;i+=0.2)
{
Float a = PI\*i/180.0;
multiBmp->SetPen(i,2\*i,3\*i);
multiBmp->Line(512,512,512+512\*cos(a), 512+512\*sin(a));
}
dataBc.SetContainer(0, optBc);
multiBmp->Save("d:/test1.exr", FILTER_EXR, &dataBc, SAVEBIT_MULTILAYER);
optBc.SetInt32(0, (Int32)6); // EXR compressions
optBc.SetBool(1, FALSE); // 16-bit
dataBc.SetContainer(0, optBc);
multiBmp->Save("d:/test2.exr", FILTER_EXR, &dataBc, SAVEBIT_MULTILAYER);