Mojo graphics canvas drawimageicon
mojo:mojo.graphics.Canvas.DrawImageIcon
Method DrawImageIcon:Void( image:Image,tx:Float,ty:Float,iconNumber:Int,iconCount:Int,rotate:Float=0 )#
Method DrawImageIcon:Void( image:Image,tx:Float,ty:Float,iconNumber:Int,iconCount:Int,sx:Float,sy:Float )#
Draws an image icon frame. Draws an image using the current Color, BlendMode and Matrix.
Parameters | |
---|---|
tx |
tx X coordinate to draw image at. |
ty |
ty Y coordinate to draw image at. |
tx1 |
tx1 X1 coordinate to draw image to. |
ty1 |
ty1 Y1 coordinate to draw image to. |
iconNumber |
iconNumber number from 0 of the icon frame to draw (frames start from 0 and go left to right in equal pixel amounts). |
iconCount |
iconCount how many icon frames are packed into the image |
sx |
sx X axis scale factor for drawing. |
sy |
sy Y axis scale factor for drawing. |
rotate |
rotate (in radians) of the icon. 0 = no rotation |