編輯

共用方式為


SKMask.GetAddr(Int32, Int32) Method

Definition

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