Edytuj

Udostępnij za pośrednictwem


GLKTextureOperations.GrayscaleAsAlpha Property

Definition

On greyscale images, controls whether the image is loaded as GL_ALPHA or GL_LUMINANCE.

public Nullable<bool> GrayscaleAsAlpha { get; set; }
member this.GrayscaleAsAlpha : Nullable<bool> with get, set

Property Value

false by default, so it loads the greyscale image as GL_LUMINANCE.

Remarks

This property controls how greyscale images are loaded. By default they are loaded as GL_LUMINANCE, but if you set this property to true, they will be loaded as GL_ALPHA.

Applies to