Changes

Jump to navigation Jump to search

gc:drawImage

697 bytes added, 21:12, 24 May 2011
Created page with "'''drawImage''' is a function that is part of gc. {{Since|3.0}} == Syntax == gc:'''drawImage'''(image, x, y) {| class="wikitable" |- ! Parameter !! Type !! D..."
'''drawImage''' is a function that is part of [[:Category:gc|gc]].

{{Since|3.0}}

== Syntax ==
gc:'''drawImage'''(image, x, y)

{| class="wikitable"
|-
! Parameter !! Type !! Description
|-
| <u>image</u> || [[TI.Image]] || The image to display
|-
| <u>x</u> || number || the x coordinate of the upper-left corner of the image
|-
| <u>y</u> || number || the y coordinate of the upper-left corner of the image
|}

== Example ==
<syntaxhighlight>
imgSRC = "\002\000\000\000\002\000\000\000\000\000\000\000\004\000\000\000\016\000\001\000\255\255\255\255\255\255\255\255"
img = image.new(imgSRC)
drawImage(img, 0, 0)
</syntaxhighlight>

== See also ==
*[[TI.Image]]

<br /><br />

[[Category:gc]]
30

edits

Navigation menu