Allow-smoothing
From Frontal Wiki
Contents |
Purpose
Use this style to smooth images loaded and scaled with the 'img' tag.
Value
Either "true" or "false". The default value is "false".
allow-smoothing: false;
Remarks
Bitmap smoothing is a feature of Flash and more information can be found in the Flash reference for Bitmap.smoothing. While bitmap smoothing can affect performance dramatically, the effect is so good that it's usually worth it.
If you are having problems getting the style to work, there may be permissions issues at play. Please see img#Permissions and External Assets for more details.
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;" /> <img src="http://www.frontalcode.com/assets/images/image_1.jpg" style="scale: 0.4; allow-smoothing: true;" />
Can Be Applied To
This style can be applied to: