SKMask.GetAddr(Int32, Int32) 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.
Returns the address of the specified pixel, computing the pixel-size at runtime based on the mask format.
public IntPtr GetAddr (int x, int y);
public readonly IntPtr GetAddr (int x, int y);
Parameters
- x
- Int32
The x-coordinate, which must be contained by the mask's bounds.
- y
- Int32
The y-coordinate, which must be contained by the mask's bounds.
Returns
Returns the address of the specified pixel.
Remarks
This will be slightly slower than using one of the routines where the format is implied by the name (e.g. GetAddr8 or GetAddr32).
This should not be called with BW, as it will give unspecified results.
Applies to
SkiaSharp