Adobe.com
Contents Suites Classes Class Index Member Index

AIRasterRecord Struct Reference

Configuration information for the raster image data associated with an art object of type kRasterArt. More...

#include <AIRaster.h>

List of all members.

Public Member Functions

 AIRasterRecord ()
 Default ctor.

Public Attributes

ai::uint16 flags
 Flags defining additional options for the image.
AIRect bounds
 The width and height of the image data in pixels.
ai::int32 byteWidth
 The number of bytes in a single row of pixel data.
ai::int16 colorSpace
 The color model of the pixel data, which can include an alpha channel, an AIRasterColorSpace constant.
ai::int16 bitsPerPixel
 The number of bits used to define each pixel in the pixel map.
ai::int16 originalColorSpace
 For an image that has been converted from one color space to another, the original color space, an AIRasterColorSpace constant.

Detailed Description

Configuration information for the raster image data associated with an art object of type kRasterArt.

Use with AIRasterSuite::GetRasterInfo() and AIRasterSuite::SetRasterInfo().


Constructor & Destructor Documentation

AIRasterRecord::AIRasterRecord (  )  [inline]

Member Data Documentation

The number of bits used to define each pixel in the pixel map.

Valid values depend on the color space: Gray: 1 (black and white) or 8 (gray) RGB: 24 (8 bits for each color) or 48 (16 bits for each color) CMYK: 32 (8 bits for each color)

The width and height of the image data in pixels.

The top left value of the bounds must be zero. The right value gives the width and the bottom value the height. (The coordinate system for a raster object is inverted on the vertical axis with respect to the Illustrator artboard coordinate system.)

Referenced by AIRasterRecord().

The number of bytes in a single row of pixel data.

Not needed for AIRasterSuite::SetRasterInfo(). 1-bit data is packed so that there are 8 pixels per byte.

  • If bitsPerPixel is 1 (for a black-and-white bitmap), the value is: rasterRecord.bounds.right / 8 + 1
  • For all other bitsPerPixel values, the value is: rasterRecord.bounds.right * (rasterRecord.bitsPerPixel / 8)

The color model of the pixel data, which can include an alpha channel, an AIRasterColorSpace constant.

Flags defining additional options for the image.

A logical OR of AIRasterFlags.

For an image that has been converted from one color space to another, the original color space, an AIRasterColorSpace constant.


If the image has not been converted, the value is -1.


The documentation for this struct was generated from the following file:


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2014 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks