Edit

SkiaExtensions Class

Definition

Convenience methods for SKPixelGeometry.

public static class SkiaExtensions
Inheritance
SkiaExtensions

Methods

Name Description
GetAlphaType(SKColorType, SKAlphaType)

Returns a valid alpha type for the specified color type.

GetBitShiftPerPixel(SKColorType)

Gets the bit shift value per pixel for the specified color type.

GetBytesPerPixel(SKColorType)

Gets the number of bytes per pixel for the specified color type.

IsBgr(SKPixelGeometry)

Determines whether the pixel geometry is BGR.

IsHorizontal(SKPixelGeometry)

Determines whether the pixel geometry is horizontal.

IsRgb(SKPixelGeometry)

Determines whether the pixel geometry is RGB.

IsVertical(SKPixelGeometry)

Determines whether the pixel geometry is vertical.

ToGlSizedFormat(SKColorType)

Converts a SKColorType to the equivalent OpenGL sized format, if possible.

Applies to