Packagecom.threerings.display
Classpublic class ImageUtil

Image and Bitmap related utility functions.



Public Methods
 MethodDefined by
  
createErrorBitmap():BitmapData
[static] Create a minimally-sized "error" BitmapData.
ImageUtil
  
createErrorImage(width:int, height:int):DisplayObject
[static] Create a DisplayObject that will display an error message of the specified dimensions.
ImageUtil
  
toBitmapData(spec:*):BitmapData
[static] Takes a BitmapData, Bitmap, or Class that will turn into either, and returns a reference to the BitmapData, or returns null.
ImageUtil
Method detail
createErrorBitmap()method
public static function createErrorBitmap():BitmapData

Create a minimally-sized "error" BitmapData.

Returns
BitmapData
createErrorImage()method 
public static function createErrorImage(width:int, height:int):DisplayObject

Create a DisplayObject that will display an error message of the specified dimensions.

Parameters
width:int
 
height:int

Returns
DisplayObject
toBitmapData()method 
public static function toBitmapData(spec:*):BitmapData

Takes a BitmapData, Bitmap, or Class that will turn into either, and returns a reference to the BitmapData, or returns null.

Parameters
spec:*

Returns
BitmapData