GODPAPER | All Packages | All Classes | Index | Frames No Frames |
TextureSmoothing

Package | starling.textures
Class | public class TextureSmoothing
Inheritance | TextureSmoothing Object

A class that provides constant values for the possible smoothing algorithms of a texture.

Public Methods

| Method | Defined By
--- | --- | ---
|  | isValid(smoothing:String):Boolean [static] Determines whether a smoothing value is valid. | TextureSmoothing

Public Constants

| Constant | Defined By
--- | --- | ---
|  | BILINEAR : String = bilinear [static] Bilinear filtering. | TextureSmoothing
|  | NONE : String = none [static] No smoothing, also called "Nearest Neighbor". | TextureSmoothing
|  | TRILINEAR : String = trilinear [static] Trilinear filtering. | TextureSmoothing

Method Detail

isValid | () | method

`public static function isValid(smoothing:String):Boolean`

Determines whether a smoothing value is valid.

Parameters

| `smoothing:String`

Returns

| `Boolean`

Constant Detail

BILINEAR | Constant

`public static const BILINEAR:String = bilinear`

Bilinear filtering. Creates smooth transitions between pixels.

NONE | Constant |

`public static const NONE:String = none`

No smoothing, also called "Nearest Neighbor". Pixels will scale up as big rectangles.

TRILINEAR | Constant |

`public static const TRILINEAR:String = trilinear`

Trilinear filtering. Highest quality by taking the next mip map level into account.

Thu Jan 16 2014, 01:11 PM +08:00