Adobe InDesign CS2 (4.0) Object Model JS: Images

InDesign CS2

Class

Images

 A collection of bitmap images in any bitmap file format (including TIFF, JPEG, or GIF).

QuickLinks

anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

Image anyItem ()
Returns any Image in the collection.

number count ()
Displays the number of elements in the Image.

Array of Image everyItem ()
Returns every Image in the collection.

Image firstItem ()
Returns the first Image in the collection.

Image item (index: any)
Returns the Image with the specified index or name.

ParameterTypeDescription
indexLong
String
The index or name. Can accept: Long or String.

Image itemByID (id: number)
Returns the Image with the specified ID.

ParameterTypeDescription
idnumberThe ID.

Image itemByName (name: string)
Returns the Image with the specified name.

ParameterTypeDescription
namestringThe name.

Array of Image itemByRange (from: any, to: any)
Returns the Images within the specified range.

ParameterTypeDescription
fromImage
Long
String
The Image, index, or name at the beginning of the range. Can accept: Image, Long or String.
toImage
Long
String
The Image, index, or name at the end of the range. Can accept: Image, Long or String.

Image lastItem ()
Returns the last Image in the collection.

Image middleItem ()
Returns the middle Image in the collection.

Image nextItem (obj: Image)
Returns the Image whose index follows the specified Image in the collection.

ParameterTypeDescription
objImageThe Image whose index comes before the desired Image.

Image previousItem (obj: Image)
Returns the Image with the index previous to the specified index.

ParameterTypeDescription
objImageThe index of the Image that follows the desired Image.

string toSource ()
Generates a string which, if executed, will return the Image.

Element of

Button.images

GraphicLine.images

Group.images

Movie.images

Oval.images

PageItem.images

Polygon.images

Rectangle.images

Sound.images

State.images

XMLElement.images

Used in:

Asset Library.store (using: Array of any)

Jongware, 27-Jun-2010 v3.0.3dContents :: Index