Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
image.new
340 bytes added
,
01:48, 7 December 2013
OS 3.6 (apilevel 2.3) changes
Line 1:
Line 1:
−
image.'''new''' is a function that is part of [[:Category:image|image]].
+
image.'''new''' is a function that is part of
the
[[:Category:image|image]]
APIs
.
{{Since|3.0}}
{{Since|3.0}}
+
Updated in ApiLevel 2.3 (OS 3.6).
== Syntax ==
== Syntax ==
−
image.'''new'''(
image
)
+
myImage =
image.'''new'''(
imgData
)
+
For ApiLevel < 2.3 (OS < 3.6) :
{| class="wikitable"
{| class="wikitable"
|-
|-
! Parameter !! Type !! Description
! Parameter !! Type !! Description
|-
|-
−
| <u><center>
image
</center></u> || string || The
compressed/encrypted string containing the image header + data (see
[[TI.Image]])
+
| <u><center>
imgData
</center></u> || string || The [[TI.Image]]
-formatted string
+
|-
+
|}
+
+
For ApiLevel >= 2.3 (OS >= 3.6) :
+
{| class="wikitable"
+
|-
+
! Parameter !! Type !! Description
+
|-
+
| <u><center>imgData</center></u> || TI.ResourceHandle || The image resource (as created by the SDK
)
|-
|-
|}
|}
== Example ==
== Example ==
−
<syntaxhighlight>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")</syntaxhighlight>
+
<syntaxhighlight>
+
-- 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"
)
+
+
-- For ApiLevel >= 2.3 (OS >= 3.6) :
+
image.new(_R.IMG.img_1
)</syntaxhighlight>
+
== See also ==
== See also ==
Adriweb
Bureaucrats
,
Administrators
935
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version