Adobe 26001360 Scripting Guide - Page 433
RasterItems, Table 5.131, RasterItems - Properties, RasterItems - Methods
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 433 highlights
Adobe Illustrator CS Scripting Guide 433 RasterItems A collection of raster art items. Table 5.131 RasterItems - Properties Property R/O Value type What it is Application Count Parent R/O Application object The Illustrator Application object R/O Long The number of objects in the collection R/O object The object that contains this RasterItems object Table 5.132 RasterItems - Methods Method Returns Add() Index(item As RasterItem) RasterItem object Long item(itemKey) RasterItem object RemoveAll() Nothing 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 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" 12 Aug 03