Language version: | ActionScript 3.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 moble 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.
public static const BEST:String = "best"
Language version: | ActionScript 3.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).
public static const HIGH:String = "high"
Language version: | ActionScript 3.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.
public static const HIGH_16X16:String = "16x16"
Language version: | ActionScript 3.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.BEST
with Bitmap.smoothing
set to true
slows performance significantly and is not a recommended setting).
public static const HIGH_16X16_LINEAR:String = "16x16linear"
Language version: | ActionScript 3.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.BEST
with Bitmap.smoothing
set to true
slows performance significantly and is not a recommended setting).
public static const HIGH_8X8:String = "8x8"
Language version: | ActionScript 3.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.BEST
with Bitmap.smoothing
set to true
slows performance significantly and is not a recommended setting).
public static const HIGH_8X8_LINEAR:String = "8x8linear"
Language version: | ActionScript 3.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.BEST
with Bitmap.smoothing
set to true
slows performance significantly and is not a recommended setting).
public static const LOW:String = "low"
Language version: | ActionScript 3.0
|
Specifies low rendering quality.
Graphics are not anti-aliased, and bitmaps are not smoothed, but runtimes still use mip-mapping.
public static const MEDIUM:String = "medium"
Language version: | ActionScript 3.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.
© 2004-2022 Adobe Systems Incorporated. All rights reserved.
Wed Sep 28 2022, 6:12 PM GMT+01:00