Gary Faulkner
|
un-flipping images displayed via vgDrawImage()??
|
Gary Faulkner
01/21/2010 6:22 PM
post45731
|
un-flipping images displayed via vgDrawImage()??
So, if one does something like the following:
VGImage image = vgCreateImage(VG_sRGBA_8888,img.w,img.h,VG_IMAGE_QUALITY_BETTER);
if (image == (VGImage)0)
{
fprintf(stderr,"Unable to create VG image: %d\n",vgGetError());
return -1;
}
vgImageSubData(image,img.access.direct.data,img.access.direct.stride,VG_sARGB_8888,0,0,img.w,img
then a vgDrawImage(image);
the image is flipped upside-down. What is the correct way to either cause it to be loaded into the VGImage correctly,
or to display it correctly?
I realize this is "documented behavior" for openvg; but I'm not sure how one is supposed to (efficiently) overcome it.
Thanks!
|
|
|