Cache-as-bitmap
From Frontal Wiki
Contents |
Purpose
Use this style to turn on bitmap caching for a visual element. (Bitmap caching is a Flash feature as described in #Remarks.)
Value
Either "true" or "false". The default value is "false".
cache-as-bitmap: false;
Remarks
Bitmap caching is a Flash feature that is described extensively in the Flash documentation. When used properly it can improve performance tremendously. When used incorrectly though it can actually hurt performance and cause interactions to misbehave. So if you're having a performance issue then try it out but be ready to unset it if you see problems.
Example
In this example, we load the same image twice and scale it by half. For the first image, we do not allow smoothing and for the second we do. Notice the quality difference in the result.
<img src="http://www.frontalcode.com/assets/images/image_1.jpg" style="scale: 0.4; allow-smoothing: false; cache-as-bitmap: true;" />
Can Be Applied To
This style can be applied to any visual element: