I want to implement the possibility to batch the save of active object frames to files (with a metadata file for image properties).
I managed to get code working but for some images, the images seem to loose quality or to be aliased although they should not be.
If I use the save image button in the image editor of the active object, it works without problem.
WORD imageNumber = (WORD)adPtr->adFrame[nFrame];
if (LockImageSurface(pObj->roHo.hoAdRunHeader->rhIdAppli, imageNumber, sprite))
CImageFilterMgr* pImgMgr = rhPtr->rh4.rh4Mv->mvImgFilterMgr;
bool res = ExportImage(pImgMgr, (fullName+".png").c_str(), &sprite, FILTERID_PNG);
Did I miss something?
with image editor: