Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - un-flipping images displayed via vgDrawImage()??: (2 Items)
   
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!
Re: un-flipping images displayed via vgDrawImage()??  
Nevermind... figured it out with the negative stride stuff.