[codenameone-discussions] Re: Can't see canvas unless I resize emulator

2016-07-25 Thread Gareth Murfin
OK looks like img.mirror() and img.subImage() can copy these functions well! So all working now. ie, J2ME: gs.drawRegion(img, rgRect[0], rgRect[1], rgRect[2], rgRect[3], Sprite.TRANS_MIRROR, posx-rgRect[4], posy-rgRect[5],

[codenameone-discussions] Re: Can't see canvas unless I resize emulator

2016-07-25 Thread Gareth Murfin
And I need graphics.copyArea() :-) looks like im gonna have to implement some of these... got the port of the game working actually, its only the flipped sprites missing! On Monday, July 25, 2016 at 10:17:59 PM UTC+8, Gareth Murfin wrote: > > Also interested in anyway to mimic "anchors" when

[codenameone-discussions] Re: Can't see canvas unless I resize emulator

2016-07-25 Thread Gareth Murfin
Also interested in anyway to mimic "anchors" when doing a drawImage(), im basically porting old j2me canvas titles. On Monday, July 25, 2016 at 9:02:21 PM UTC+8, Gareth Murfin wrote: > > Fixed it, it was my own canvas logic. Also curious if there are any libs > around with things like

[codenameone-discussions] Re: Can't see canvas unless I resize emulator

2016-07-25 Thread Gareth Murfin
Fixed it, it was my own canvas logic. Also curious if there are any libs around with things like drawRegion in the graphics class? And Sprite stuff from old midp2 days and things for flipping sprites in code (TRANS_MIRROR) On Monday, July 25, 2016 at 8:21:32 PM UTC+8, Gareth Murfin wrote: > >

[codenameone-discussions] Re: Can't see canvas unless I resize emulator

2016-07-25 Thread Gareth Murfin
ps DDragon extends Component and has an override for paintBackground On Monday, July 25, 2016 at 8:13:48 PM UTC+8, Gareth Murfin wrote: > > I am trying to port an old arcade game to codename one. I am using the > canvas and have something drawing, but I can only see it when Im literally >