maDrawImageRegion() in WM 6.1

4 posts / 0 new
Last post
loki1980
loki1980's picture
Offline
Mobile Conjurer
Joined: 15 Jun 2010
Posts:
maDrawImageRegion() in WM 6.1

Hello there,

I have been playing around with the graphics engine and I have encountered the following problem:

I tried to draw an image rotated by using the maDrawImageRegion() function. While in the emulator, everything worked fine, but when test on my mobile phone (HTC HD) the rotated picture was not drawn correctly. As a matter of fact, the rotated picture was converted to a bounch of lines...
The code that I used is as follows:

MARect l_rect;
          l_rect.left = 0;
          l_rect.top = 0;
          MAExtent l_imgSize1 = maGetImageSize(image);
          l_rect.width = EXTENT_X(l_imgSize1);
          l_rect.height =EXTENT_Y(l_imgSize1);
          MAPoint2d p;
          p.x= 0;
          p.y=0;
          maDrawImageRegion(image,&l_rect,&p,TRANS_NONE);
          MAPoint2d p2;
          p2.x= 50;
          p2.y=0;
          maDrawImageRegion(image,&l_rect,&p2,TRANS_ROT90);

I am quite new at this so I hope I am not doing something wrong...
Could be this depending on the resource I use(transparent .png)?
I can provide any additional information if needed.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Niklas Nummelin
niklas's picture
Offline
Mobile Wizard
Joined: 18 Dec 2007
Posts:

It sounds like a bug. Will look into it asap.

I added an issue: https://github.com/MoSync/MoSync

// Niklas

loki1980
loki1980's picture
Offline
Mobile Conjurer
Joined: 15 Jun 2010
Posts:

Thank you Niklas Smile

overfl0w
overfl0w's picture
Offline
Mobile Conjurer
Joined: 12 Jun 2010
Posts:

I have run into this issue on a Symbian S60 5th ed (Nokia 5800) device as well.