Difference between revisions of "gc:drawImage"

From Inspired-Lua Wiki
Jump to navigation Jump to search
m (Text replace - "| <u>" to "| <u><center>")
Line 10: Line 10:
 
! Parameter !! Type !! Description
 
! Parameter !! Type !! Description
 
|-
 
|-
| <u>image</u> || [[TI.Image]] || The image to display
+
| <u><center>image</u> || [[TI.Image]] || The image to display
 
|-
 
|-
| <u>x</u> || number || the x coordinate of the upper-left corner of the image
+
| <u><center>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
+
| <u><center>y</u> || number || the y coordinate of the upper-left corner of the image
 
|}
 
|}
  

Revision as of 23:40, 30 May 2011

drawImage is a function that is part of gc.

This has been introduced in TI-Nspire OS 3.0 (Changes).


Syntax

gc:drawImage(image, x, y)

Parameter Type Description
image
TI.Image The image to display
x
number the x coordinate of the upper-left corner of the image
y
number the y coordinate of the upper-left corner of the image

Example

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)

See also