ColorImage Class
The image of a glyph a font gives as a bitmap: pixels decoded, and scaled to the size the glyph is drawn at, when a text is laid out.
public sealed class ColorImageConstructors
| Name | Description |
|---|---|
| ColorImage(int, int, byte[]) | Initializes a new instance of the ColorImage class. |
ColorImage(int, int, byte[])
ColorImage.csInitializes a new instance of the ColorImage class.
Properties
| Name | Description |
|---|---|
| Height | Gets the height of the image, in pixels. |
| Pixels | Gets the pixels, row by row from the top, four bytes each (red, green, blue, opacity), with colors that are not multiplied by their opacity. |
| Width | Gets the width of the image, in pixels. |
Height
ColorImage.csPixels
ColorImage.csGets the pixels, row by row from the top, four bytes each (red, green, blue, opacity), with colors that are not multiplied by their opacity.
public ReadOnlySpan<byte> Pixels { get; }