Hi Nigel,
In my previous example, I'm not using resizing at all, because "as is" is selected. As you suggested, I have tried (without resizing):
viewPbrOutput->Clear();
viewPbrOutput->ShowText = false;
viewPbrOutput->FillFromDirectory(shComboPbr->Path, -1, false, "", false, "png,PNG", false, false);
if (viewPbrOutput->ImageCount <= 0)
return;
for (int i = 0; i < viewPbrOutput->ImageCount; i++)
{
viewPbrOutput->ObtainImageNow(i, true);
}
Again, result is still the same (1,10MB) unless I scroll the mview to the bottom, then the result is 746KB. Maybe my ImageEn version is too old (8.1.1).
Edit: Saving snapshot code (ordinary TSaveDialog):
TSaveDialog *svDialog = new TSaveDialog(this);
svDialog->Filter = "Pump brush (*.pbr)|*.pbr";
svDialog->DefaultExt = "pbr";
svDialog->FileName = _dataKeeper->CommonBlock->PumpBrushDir + "Untitled";
if (svDialog->Execute())
{
if (viewPbrOutput->ImageCount > 0)
{
//NOTE: I've added these two lines befor saving snapshot
for (int i = 0; i < viewPbrOutput->ImageCount; i++)
viewPbrOutput->ObtainImageNow(i, true);
TIESaveSnapshotOptions opt = TIESaveSnapshotOptions()<<iessoCompressed;
viewPbrOutput->IEMBitmap->SaveSnapshot(svDialog->FileName, opt);
}
}
delete svDialog;
I have added two lines of code (ObtainImageNow loop) befor saving snapshot and now the file size is 1,37MB no matter if I scroll the view or not!?
All those snapshots with different sizes load normally, but I would like to get rid of size variations and somehow be able to save same snapshot with the same fixed size.