MonoMac.CoreGraphics.CGImage.CreateMask Method
Creates an image mask.

Syntax

public static CGImage CreateMask (int width, int height, int bitsPerComponent, int bitsPerPixel, int bytesPerRow, CGDataProvider provider, float[] decode, bool shouldInterpolate)

Parameters

width
Documentation for this section has not yet been entered.
height
Documentation for this section has not yet been entered.
bitsPerComponent
Documentation for this section has not yet been entered.
bitsPerPixel
Documentation for this section has not yet been entered.
bytesPerRow
Documentation for this section has not yet been entered.
provider
Documentation for this section has not yet been entered.
decode
Documentation for this section has not yet been entered.
shouldInterpolate
Documentation for this section has not yet been entered.

Returns

Remarks

Image masks can be 1, 2, 4 or 8 bits per component. 1-bit masks are the simplest ones as they either allow painting (the mask is set to zero) or not (the mask bit is set to one). For 2, 4 and 8 the values the values are interpolated between the possible range.

Masks are used to filter how drawings are taking place. Zero values in a mask allow painting to take place, a value of one would mask out the rendering.

Requirements

Namespace: MonoMac.CoreGraphics
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0