Packagecom.yworks.util
Classpublic class CloneableBitmap
InheritanceCloneableBitmap Inheritance flash.display.Bitmap
ImplementsICloneable

A Bitmap implementation which wraps BitmapData into a cloneable Bitmap.

See also

flash.display.Bitmap
flash.display.BitmapData


Public Methods
 MethodDefined by
  
CloneableBitmap(bitmapData:BitmapData, pixelSnapping:String = "auto", smoothing:Boolean = false)
Creates a CloneableBitmap implementation from the given BitmapData.
CloneableBitmap
  
clone():Object
Creates a clone of this instance.
CloneableBitmap
Constructor detail
CloneableBitmap()constructor
public function CloneableBitmap(bitmapData:BitmapData, pixelSnapping:String = "auto", smoothing:Boolean = false)

Creates a CloneableBitmap implementation from the given BitmapData.

Parameters
bitmapData:BitmapData — The BitmapData to store in the Bitmap.
 
pixelSnapping:String (default = "auto") — Whether or not the Bitmap object is snapped to the nearest pixel
 
smoothing:Boolean (default = false) — Whether or not the bitmap is smoothed when scaled.
Method detail
clone()method
public function clone():Object

Creates a clone of this instance.

Returns
Object — A clone of this instance.