Hi all,
What鈥檚 the equivalent of this code in iOS framework ?
g.DrawPicture(myImage,0,0,300,457,0,0,600,915)
Thanks for you help
Jrme
Hi all,
What鈥檚 the equivalent of this code in iOS framework ?
g.DrawPicture(myImage,0,0,300,457,0,0,600,915)
Thanks for you help
Jrme
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 :
me.graphics.DrawPicture(bankook,x-3,y+1,4,17,x-3,y+1,4,17)
How to convert this code this to my iOS app ?
Thanks for your help
Jrme
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
.