Rasteritems - Adobe 26001360 - Illustrator CS - PC Manual

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

Adobe Illustrator CS Scripting Guide

RasterItems

A collection of raster art items.
Table 5.131 RasterItems — Properties
Property
Application
Count
Parent
Table 5.132 RasterItems — Methods
Method
Add()
Index(item As RasterItem)
item(itemKey)
RemoveAll()
Example 71.1
This script illustrates how to obtain the color space of a raster item.
Dim appRef As New Illustrator.Application
Dim rasterArt As Illustrator.RasterItem
Set rasterArt = appRef.ActiveDocument.RasterItems(1)
Select Case (rasterArt.ImageColorSpace)
Case Is = aiImageCMYK
MsgBox "The first raster item is a CMYK raster item"
Case Is = aiImageRGB
MsgBox "The first raster item is an RGB raster item"
Case Is = aiImageGrayScale
MsgBox "The first raster item is a Grayscale raster item"
R/O
Value type
R/O
Application object
R/O
Long
R/O
object
Returns
RasterItem object
Long
RasterItem object
Nothing
12 Aug 03
What it is
The Illustrator Application object
The number of objects in the collection
The object that contains this
RasterItems object
What it does
Creates a new object
Returns the index position of the object
within the collection
Returns an object reference to the object
identified by itemKey; by name or index
Deletes all objects in this collection
433

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents