Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi,
How do I set a already scaled image and display it? Here is the problem description -
// Let's say I load an image.
IImage *pImage = ISHELL_LoadImage ();

// I need to display this image on the screen.
IWIDGET_SetImage ();
IWIDGET_SetScale ();

Now, my question is what would happen if the two calls to the IWIDGET_XXX () APIs get executed the second time for the same image? This doubt arises from the fact that during the second time I would already have a scaled image. So, would IWIDGET_SetImage () really accept the scaled image buffer and still act right? Can we use a scaled image buffer with this API?

When I scale an image using either IIMAGE_SetParm () or IWIDGET_SetScale (), whose buffer is let's say IImage *pImage, does the pImage get modified? In such cases, what would happen if I try to scale the image yet once again and in succession?

When I scale an image using either IIMAGE_SetParm () or IWIDGET_SetScale (), whose buffer is let's say IImage *pImage, does the pImage get modified? In such cases, what would happen if I try to scale the image yet once again and in succession?