flex.graphics
Class ImageSnapshot

java.lang.Object
  extended by java.util.AbstractMap
      extended by java.util.HashMap
          extended by flex.graphics.ImageSnapshot
All Implemented Interfaces:
Serializable, Cloneable, Map

public class ImageSnapshot
extends HashMap

This class corresponds to mx.graphics.ImageSnapshot on the client. Clients may choose to capture images and send them to the server via a RemoteObject call. The PDF generation feature of LCDS may then be used to generate PDF's from these images.

See Also:
Serialized Form

Constructor Summary
ImageSnapshot()
          Default constructor.
 
Method Summary
 String getContentType()
          The content type for the image encoding format that was used to capture this snapshot.
 byte[] getData()
          The encoded data representing the image snapshot.
 int getHeight()
          The image height in pixels.
 Map getProperties()
          Additional properties of the image.
 int getWidth()
          The image width in pixels.
 void setContentType(String value)
          Sets content type of this snapshot.
 void setData(byte[] value)
          Set the encoded data representing the image snapshot.
 void setHeight(int value)
          Set image height in pixels.
 void setProperties(Map value)
          Sets the map of dynamic properties for this snapshot.
 void setWidth(int value)
          Set width in pixels.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ImageSnapshot

public ImageSnapshot()
Default constructor.

Method Detail

getContentType

public String getContentType()
The content type for the image encoding format that was used to capture this snapshot.

Returns:
content type of this image

setContentType

public void setContentType(String value)
Sets content type of this snapshot.

Parameters:
value - content type

getData

public byte[] getData()
The encoded data representing the image snapshot.

Returns:
encoded image data

setData

public void setData(byte[] value)
Set the encoded data representing the image snapshot.

Parameters:
value - byte array of image data

getHeight

public int getHeight()
The image height in pixels.

Returns:
image height in pixels

setHeight

public void setHeight(int value)
Set image height in pixels.

Parameters:
value - image height in pixels.

getProperties

public Map getProperties()
Additional properties of the image.

Returns:
a map containing the dynamically set properties on this snapshot

setProperties

public void setProperties(Map value)
Sets the map of dynamic properties for this snapshot.

Parameters:
value - map containing dynamic properties for this snapshot

getWidth

public int getWidth()
The image width in pixels.

Returns:
width in pixels

setWidth

public void setWidth(int value)
Set width in pixels.

Parameters:
value - width in pixels.


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/graphics/ImageSnapshot.html