Packageflash.display
Classpublic final class StageQuality
InheritanceStageQuality Inheritance Object

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

The StageQuality class provides values for the Stage.quality property and for the value of the quality parameter to the BitmapData.drawWithQuality() method.

Higher quality settings produce better rendering of scaled bitmaps. However, higher quality settings are computationally more expensive. In particular, when rendering scaled video, using higher quality settings can reduce the frame rate.

In the desktop profile of Adobe AIR, quality can be set to StageQuality.BEST or StageQuality.HIGH (and the default value is StageQuality.HIGH). Attempting to set it to another value has no effect (and the property remains unchanged). In the mobile profile of AIR, all four quality settings are available. The default value on mobile devices is StageQuality.MEDIUM.

For content running in Adobe AIR, setting the quality property of one Stage object changes the rendering quality for all Stage objects (used by different NativeWindow objects).

Note: The operating system draws the device fonts, which are therefore unaffected by the quality property.

See also

flash.display.Stage.quality
flash.display.BitmapData.drawWithQuality()


Public Methods
 MethodDefined By
 Inherited
_init():*
[static]
_init
 Inherited
AS3
 Inherited
init():*
[static]
init
 Inherited
AS3
 Inherited
AS3
Protected Methods
 MethodDefined By
 Inherited
[static]
protected
 Inherited
_setPropertyIsEnumerable(o:*, V:String, enumerable:Boolean):void
[static]
protected
Public Constants
 ConstantDefined By
  BEST : String = "best"
[static] Specifies very high rendering quality.
StageQuality
  HIGH : String = "high"
[static] Specifies high rendering quality.
StageQuality
  HIGH_16X16 : String = "16x16"
[static] Specifies very high rendering quality.
StageQuality
  HIGH_16X16_LINEAR : String = "16x16linear"
[static] Specifies very high rendering quality.
StageQuality
  HIGH_8X8 : String = "8x8"
[static] Specifies very high rendering quality.
StageQuality
  HIGH_8X8_LINEAR : String = "8x8linear"
[static] Specifies very high rendering quality.
StageQuality
 Inheritedlength : int = 1
[static]
length
  LOW : String = "low"
[static] Specifies low rendering quality.
StageQuality
  MEDIUM : String = "medium"
[static] Specifies medium rendering quality.
StageQuality
Constant Detail
BESTConstant
public static const BEST:String = "best"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

Specifies very high rendering quality. Graphics are anti-aliased using a 4 x 4 pixel grid. If Bitmap.smoothing is true the runtime uses a high quality downscale algorithm that produces fewer artifacts (however, using StageQuality.BEST with Bitmap.smoothing set to true slows performance significantly and is not a recommended setting).

HIGHConstant 
public static const HIGH:String = "high"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

Specifies high rendering quality. Graphics are anti-aliased using a 4 x 4 pixel grid, and bitmap smoothing is dependent on the Bitmap.smoothing setting. Runtimes use mip-mapping. This is the default rendering quality setting that Flash Player uses.

HIGH_16X16Constant 
public static const HIGH_16X16:String = "16x16"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 11.3, AIR 1.0

Specifies very high rendering quality. Graphics are anti-aliased using a 16 x 16 pixel grid. If Bitmap.smoothing is true the runtime uses a high quality downscale algorithm that produces fewer artifacts (however, using StageQuality.HIGH_16X16 with Bitmap.smoothing set to true slows performance significantly and is not a recommended setting).

HIGH_16X16_LINEARConstant 
public static const HIGH_16X16_LINEAR:String = "16x16linear"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 11.3, AIR 1.0

Specifies very high rendering quality. Graphics are anti-aliased using a 16 x 16 pixel grid. Antialiasing is generated in linear sRGB space. If Bitmap.smoothing is true the runtime uses a high quality downscale algorithm that produces fewer artifacts (however, using StageQuality.HIGH_16X16_LINEAR with Bitmap.smoothing set to true slows performance significantly and is not a recommended setting).

HIGH_8X8Constant 
public static const HIGH_8X8:String = "8x8"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 11.3, AIR 1.0

Specifies very high rendering quality. Graphics are anti-aliased using a 8 x 8 pixel grid. If Bitmap.smoothing is true the runtime uses a high quality downscale algorithm that produces fewer artifacts (however, using StageQuality.HIGH_8X8 with Bitmap.smoothing set to true slows performance significantly and is not a recommended setting).

HIGH_8X8_LINEARConstant 
public static const HIGH_8X8_LINEAR:String = "8x8linear"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 11.3, AIR 1.0

Specifies very high rendering quality. Graphics are anti-aliased using a 8 x 8 pixel grid. Antialiasing is generated in linear sRGB space. If Bitmap.smoothing is true the runtime uses a high quality downscale algorithm that produces fewer artifacts (however, using StageQuality.HIGH_8X8_LINEAR with Bitmap.smoothing set to true slows performance significantly and is not a recommended setting).

LOWConstant 
public static const LOW:String = "low"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

Specifies low rendering quality. Graphics are not anti-aliased, and bitmaps are not smoothed, but runtimes still use mip-mapping.

MEDIUMConstant 
public static const MEDIUM:String = "medium"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

Specifies medium rendering quality. Graphics are anti-aliased using a 2 x 2 pixel grid, bitmap smoothing is dependent on the Bitmap.smoothing setting. Runtimes use mip-mapping. This setting is suitable for movies that do not contain text.