You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Image Library > new

10.1 new

img = image.new(string) -- API Level < 2.3 
img = image.new(resource) -- API Level 2.3

This function returns a new image object from an image resource or string, based on the API level. These two different kinds of image description cannot be mixed within one script. Image resources support alpha blending on all platforms of the TI-Nspire™ product family.

For details about authoring image resources please refer to the Script Editor section in either the teacher or student TI-Nspire™ software guidebook.

Introduced in platform.apiLevel = '1.0'

Extended in platform.apiLevel = ‘2.3’