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

Developer

Forums

Forums:

Hi,

Please help in solving a problem, I m using IGraphics_StretchBlt to stretch an image its working well on emulator , but not on actual device, then I also made use of CONVERTBMP & had to use it with IDISPLAY_BitBlt, now image is displayed on device but of actual size, can anybody suggest me a way, wats the proper way of implementing it, the point is I want to stretch/compress an image as per device screen size, Thanx in advance.

use IIMAGE_SetParam
If nParm is IPARM_SCALE, p1 and p2 specify the scaled width and height of the image. The image will be scale to this size using a bilinear interpolation scaling algorithm. Setting the scaled size also resets the size set with IPARM_SIZE.
it'll be slow though, either that or stick with StretchBlt, which isn't that fast either.

use IIMAGE_SetParam
If nParm is IPARM_SCALE, p1 and p2 specify the scaled width and height of the image. The image will be scale to this size using a bilinear interpolation scaling algorithm. Setting the scaled size also resets the size set with IPARM_SIZE.
it'll be slow though, either that or stick with StretchBlt, which isn't that fast either.

Are u talking about 2.0 version coz i didnt find this MACRO IPARM_SCALE , plz chk it out.

Are u talking about 2.0 version coz i didnt find this MACRO IPARM_SCALE , plz chk it out.

yeah its brew 3 only.
you're stuck with StretchBlit

yeah its brew 3 only.
you're stuck with StretchBlit

Ya I wil hav to stuck with StretchBlt but not able to implement it on device, which is working absolutely fine on emulator, hav u ever tried it.

Ya I wil hav to stuck with StretchBlt but not able to implement it on device, which is working absolutely fine on emulator, hav u ever tried it.

you should be able to convert between the various brew image types to use StretchBlt, i've used it in the past , its too slow, i tend to use as few brew calls as possible, just basically grab the framebuffer and go from there.

you should be able to convert between the various brew image types to use StretchBlt, i've used it in the past , its too slow, i tend to use as few brew calls as possible, just basically grab the framebuffer and go from there.