Difference between revisions of "image.new"
Jump to navigation
Jump to search
(OS 3.6 (apilevel 2.3) changes) |
m (→Example) |
||
Line 28: | Line 28: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
-- For ApiLevel < 2.3 (OS < 3.6) : | -- For ApiLevel < 2.3 (OS < 3.6) : | ||
− | image.new("\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("\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") |
-- For ApiLevel >= 2.3 (OS >= 3.6) : | -- For ApiLevel >= 2.3 (OS >= 3.6) : | ||
− | image.new(_R.IMG.img_1)</syntaxhighlight> | + | img = image.new(_R.IMG.img_1)</syntaxhighlight> |
− | |||
== See also == | == See also == |
Revision as of 15:48, 17 December 2013
image.new is a function that is part of the image APIs.
This has been introduced in TI-Nspire OS 3.0 (Changes).
Updated in ApiLevel 2.3 (OS 3.6).
Syntax
myImage = image.new(imgData)
For ApiLevel < 2.3 (OS < 3.6) :
Parameter | Type | Description |
---|---|---|
string | The TI.Image-formatted string |
For ApiLevel >= 2.3 (OS >= 3.6) :
Parameter | Type | Description |
---|---|---|
TI.ResourceHandle | The image resource (as created by the SDK) |
Example
-- For ApiLevel < 2.3 (OS < 3.6) :
img = image.new("\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")
-- For ApiLevel >= 2.3 (OS >= 3.6) :
img = image.new(_R.IMG.img_1)
See also