Hi all,
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.
Code
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);
}
If I use the save image button in the image editor of the active object, it works without problem.
Did I miss something?
with extension:
Please login to see this attachment.
with image editor:
Please login to see this attachment.