Packagesekati.validators
Classpublic class BitmapValidator

BitmapValidator provides constants & validation to manage Bitmap, BitmapData & DisplayObject's.



Public Methods
 MethodDefined by
  
BitmapValidator Static Constructor
BitmapValidator
  
isBitmappable(src:DisplayObject):Boolean
[static] Determines whether the dimensions of a DisplayObject are of a bitmappable size (within player version limitations).
BitmapValidator
  
isBitmappableArea(width:int, height:int):Boolean
[static] Determines whether the given dimensions are of a bitmappable size (within player version limitations).
BitmapValidator
Public Constants
 ConstantDefined by
  MAX_PIXELS : int
[static] The maximum number of possible pixels in a BitmapData object in the Flash Player.
  • <= FP9: 8,294,400 pixels total (aka 2880x2880) .
  • >= FP10: 16,777,215 pixels total (aka 0xFFFFFF, large bitmap support).
BitmapValidator
  MAX_SIDE_LENGTH : int
[static] The maximum possible size if a BitmapData object size.
  • <= FP9: 2880 pixels per side.
  • >= FP10: 8191 pixels per side (large bitmap support allows this only so long as the object remains under the MAX_PIXELS size).
BitmapValidator
  MAX_SIZE : int
[static] The maximum dimension of a squared BitmapData object in the Flash Player.
  • <= FP9: 2880 pixel maximum per squared.
  • >= FP10: 4095 pixel maximum squared (large bitmap support.
BitmapValidator
  MAX_SIZE_SAFE : int = 2880
[static] The maximum safe dimensions of a BitmapData object in the Flash >=9.
BitmapValidator
Constructor detail
BitmapValidator()constructor
public function BitmapValidator()

BitmapValidator Static Constructor

Method detail
isBitmappable()method
public static function isBitmappable(src:DisplayObject):Boolean

Determines whether the dimensions of a DisplayObject are of a bitmappable size (within player version limitations).

Parameters
src:DisplayObject

Returns
Boolean
isBitmappableArea()method 
public static function isBitmappableArea(width:int, height:int):Boolean

Determines whether the given dimensions are of a bitmappable size (within player version limitations).

Parameters
width:int
 
height:int

Returns
Boolean
Constant detail
MAX_PIXELSconstant
public static const MAX_PIXELS:int

The maximum number of possible pixels in a BitmapData object in the Flash Player.

  • <= FP9: 8,294,400 pixels total (aka 2880x2880) .
  • >= FP10: 16,777,215 pixels total (aka 0xFFFFFF, large bitmap support).

See also

MAX_SIDE_LENGTHconstant 
public static const MAX_SIDE_LENGTH:int

The maximum possible size if a BitmapData object size.

  • <= FP9: 2880 pixels per side.
  • >= FP10: 8191 pixels per side (large bitmap support allows this only so long as the object remains under the MAX_PIXELS size).

See also

MAX_SIZEconstant 
public static const MAX_SIZE:int

The maximum dimension of a squared BitmapData object in the Flash Player.

  • <= FP9: 2880 pixel maximum per squared.
  • >= FP10: 4095 pixel maximum squared (large bitmap support. Note that 4096x4096 exceeds MAX_PIXELS).

See also

MAX_SIZE_SAFEconstant 
public static const MAX_SIZE_SAFE:int = 2880

The maximum safe dimensions of a BitmapData object in the Flash >=9. Use as a good safe value.