Equivalent g.DrawPicture in IOS Framework

Hi all,

What鈥檚 the equivalent of this code in iOS framework ?


Thanks for you help :slight_smile:


The LR is your friend : http://developer.xojo.com/iosgraphics$DrawImage

Thanks for your response Michel, but missing options.

DrawImage(pic As iOSBitmap, x As Double, y As Double, width As Double, height As Double)

Graphics.DrawPicture ( Image as Picture, X as Integer, Y as Integer [,DestWidth as Integer ] [, DestHeight as Integer ] [, SourceX as Integer ] [, SourceY as Integer ] [, SourceWidth as Integer ] [, SourceHeight as Integer] )

In my desktop app :


How to convert this code this to my iOS app ?

Thanks for your help :slight_smile:


You don鈥檛 get sourceX and SourceY. If you need such cropping you need to create a new picture. The picture will automatically be fitted within Width and Height, in practice DestWidth and DestHeight.

If you need scaling, see g.scale. For instance g.scale(0.5, 0.5) before g.DrawImage.