Packagecom.adobe.photoshop.messages
Classpublic class ImageMessage
InheritanceImageMessage Inheritance Message Inheritance Object
Implements IMessage

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

An ImageMessage is a Message that contains some image data. Currently the API supports sending JPGs to and from Photoshop.



Public Properties
 PropertyDefined By
 InheritedapiVersion : int
Message
  bitmapData : BitmapData
The BitmapData that this ImageMessage contains, if any.
ImageMessage
 InheritedmessageLength : int
The message length of the Photoshop message.
Message
 InheritedmessageType : int
The type of message that IMessage represents.
Message
 InheritedtransactionID : int
The transaction ID of the Photoshop message.
Message
Public Methods
 MethodDefined By
  
Constructor
ImageMessage
  
toStream():ByteArray
[override] Converts the ImageMessage to a serialized format, which can be sent to Photoshop.
ImageMessage
Public Constants
 ConstantDefined By
  IMAGE_TYPE_JPG : int = 1
[static] Defined by the Photoshop API
ImageMessage
Property Detail
bitmapDataproperty
public var bitmapData:BitmapData

The BitmapData that this ImageMessage contains, if any.

Constructor Detail
ImageMessage()Constructor
public function ImageMessage()

Constructor

Method Detail
toStream()method
override public function toStream():ByteArray

Converts the ImageMessage to a serialized format, which can be sent to Photoshop. Calling this function may take a small amount of time, since it has to encode the Image to a JPG.

Returns
ByteArray — A ByteArray that contains the raw, serialized format of this ImageMessage.
Constant Detail
IMAGE_TYPE_JPGConstant
public static const IMAGE_TYPE_JPG:int = 1

Defined by the Photoshop API