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

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.