RasterItem

Raster artwork item.

Methods:

colorize, duplicate, move, remove, removeAll, trace

Objects:

Boolean, File, ImageColorSpace, Matrix, RasterLinkState, String,

Hierarchy:

Superclass: PageItem

Class: RasterItem

Property Listing

Property

Type

Access

Description

bitsPerChannel

Int32

readonly

The number of bits per channel.

boundingBox

Rect

read/write

Dimensions of raster art object regardless of transformations.

channels

Int32

readonly

The number of image channels.

colorants

Array of String

readonly

List of colorant names.

colorizedGrayscale

Boolean

readonly

Is the raster art a colorized grayscale image?

contentVariable

Varies

read/write

The content variable bound to this raster art object.

embedded

Boolean

read/write

Is the raster art embedded within the illustration?

file

File

readonly

The file containing the raster artwork.

imageColorSpace

ImageColorSpace

ImageColorSpace.CMYK

ImageColorSpace.DeviceN

ImageColorSpace.GrayScale

ImageColorSpace.Indexed

ImageColorSpace.LAB

ImageColorSpace.RGB

ImageColorSpace.Separation

readonly

The color space of the raster image.

matrix

Matrix

read/write

The transformation matrix of the raster art object.

overprint

Boolean

read/write

Is the raster art overprinting?

parent

 

readonly

The object's container.

status

RasterLinkState

RasterLinkState.DATAFROMFILE

RasterLinkState.DATAMODIFIED

RasterLinkState.NODATA

readonly

Status of the linked image.

transparent

Boolean

readonly

Is the raster art transparent?

typename

String

readonly

The class name of the object.

Method Listing

undefined colorize (rasterColor:Color)

Colorize the RasterItem with a CMYK or RGB Color.

Parameter

Type

Description

rasterColor

Color

The color to use for coloring the TIFF image.

RasterItem duplicate (relativeObject:Object, insertionLocation:ElementPlacement)

Duplicate this object.

Parameter

Type

Description

relativeObject

Object

 

insertionLocation

ElementPlacement

 

RasterItem move (relativeObject:Object, insertionLocation:ElementPlacement)

Move the object.

Parameter

Type

Description

relativeObject

Object

 

insertionLocation

ElementPlacement

 

undefined remove ()

Deletes this object.

undefined removeAll ()

Deletes all elements.

PluginItem trace ()

Trace this raster object using default options. Reorders this raster to the source art.

Return

RasterItem.duplicate()

RasterItems.getByName()

RasterItem.move()