SkiaExtensions.GetBitShiftPerPixel(SKColorType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the bit shift value per pixel for the specified color type.
public static int GetBitShiftPerPixel(this SkiaSharp.SKColorType colorType);
Parameters
- colorType
- SKColorType
The color type to query.
Returns
The number of bits to shift to calculate byte offsets for pixels.