Transparent images with negative co-ordinates | developer.brewmp.com Transparent images with negative co-ordinates | developer.brewmp.com

Developer

Transparent images with negative co-ordinates

Forums:

Hi,

I have a peculiar problem while drawing transparent images with negative co-ordinates.

For example, if I do:

IIMAGE_SetParm(pImg, IPARM_ROP, AEE_RO_TRANSPARENT, 0);
IIMAGE_Draw(pImg, -10, 0);

And if the image is say 30 pixels wide, it will clip the image correctly, but after 20 pixels, there will be a white rectangle 10 pixels wide.

This does not happen with opaque images.

I am getting this in the emulator (Motorola T720)...I am yet to test it on the device.

Any idea if there is a work around for this.

Thanks in advance,
Roshan

Hmm maybe use CONVERTBMP and then IDISPLAY_BitBlt, i haven't got this problem using these ones..
/kUfa

Hmm maybe use CONVERTBMP and then IDISPLAY_BitBlt, i haven't got this problem using these ones..
/kUfa

I've seen this happening in the BREW 1.1 emulator... If you use the same app in the BREW 2.0 emulator it works fine... And I've tested it on 1.1 devices and it worked as well (no white rectangles... :) )

I've seen this happening in the BREW 1.1 emulator... If you use the same app in the BREW 2.0 emulator it works fine... And I've tested it on 1.1 devices and it worked as well (no white rectangles... :) )

Thanks kUfa and nogara,
I've verified that doing a CONVERTBMP and IDISPLAY_BitBlt works.
Also, good to know that 'IIMAGE_Draw' will work on the device. I think I'll wait for the device and try both of these methods. I may have to resort to CONVERTBMP and IDISPLAY_BitBlt for efficiency reasons.
Thanks again,
Roshan

Thanks kUfa and nogara,
I've verified that doing a CONVERTBMP and IDISPLAY_BitBlt works.
Also, good to know that 'IIMAGE_Draw' will work on the device. I think I'll wait for the device and try both of these methods. I may have to resort to CONVERTBMP and IDISPLAY_BitBlt for efficiency reasons.
Thanks again,
Roshan

Some handsets do have problems when blitting to off-screen coordinates. The t720 and vx4400 come to mind immediately.
It is ALWAYS a good idea to clip images before blitting them to the screen.

Some handsets do have problems when blitting to off-screen coordinates. The t720 and vx4400 come to mind immediately.
It is ALWAYS a good idea to clip images before blitting them to the screen.

Well, i'm using both, and do not have any problem..
/kUFa

Well, i'm using both, and do not have any problem..
/kUFa