Adobe Illustrator CS6 Type Library JS: RasterItem

Illustrator CS6

Class

RasterItem

 Raster artwork item. Base Class: PageItem

QuickLinks

colorize, duplicate, move, remove, removeAll, trace

Hierarchy

Object
PageItem
RasterItem

Properties

PropertyTypeAccessDescription
bitsPerChannelInt32 readonlyThe number of bits per channel.
boundingBoxRectangle r/wDimensions of raster art object regardless of transformations.
channelsInt32 readonlyThe number of image channels.
colorantsArray of string readonlyList of colorant names.
colorizedGrayscalebool readonlyIs the raster art a colorized grayscale image?
contentVariableany r/wThe content variable bound to this raster art object.
embeddedbool r/wIs the raster art embedded within the illustration?
fileFile readonlyThe file containing the raster artwork.
imageColorSpaceImageColorSpace:
ImageColorSpace.GrayScale
ImageColorSpace.RGB
ImageColorSpace.CMYK
ImageColorSpace.LAB
ImageColorSpace.Separation
ImageColorSpace.DeviceN
ImageColorSpace.Indexed
readonlyThe color space of the raster image.
matrixMatrix r/wThe transformation matrix of the raster art object.
overprintbool r/wIs the raster art overprinting?
parentObject readonlyThe object's container.
statusRasterLinkState:
RasterLinkState.NODATA
RasterLinkState.DATAFROMFILE
RasterLinkState.DATAMODIFIED
readonlyStatus of the linked image.
transparentbool readonlyIs the raster art transparent?
typenamestring readonlyThe class name of the object.

Methods

Instances

void colorize (rasterColor: Color)
Colorize the RasterItem with a CMYK or RGB Color.

ParameterTypeDescription
rasterColorColorThe color to use for coloring the TIFF image.

RasterItem duplicate (relativeObject: Object, insertionLocation: ElementPlacement)
Duplicate this object.

ParameterTypeDescription
relativeObjectObject
insertionLocationElementPlacement

RasterItem move (relativeObject: Object, insertionLocation: ElementPlacement)
Move the object.

ParameterTypeDescription
relativeObjectObject
insertionLocationElementPlacement

void remove ()
Deletes this object.

void removeAll ()
Deletes all elements.

PluginItem trace ()
Trace this raster object using default options. Reorders this raster to the source art.

Return

RasterItem RasterItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

RasterItem RasterItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

RasterItem RasterItems.getByName (name: string)

Jongware, 25-Nov-2012 v3.0.3iContents :: Index