iOS Guides | Samples

CoreGraphics.CGBitmapContext Class

CGContext backed by an in-memory bitmap.

See Also: CGBitmapContext

Syntax

public class CGBitmapContext : CGContext

Related content

Requirements

Namespace: CoreGraphics
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of CoreGraphics.CGBitmapContext are listed below.

See Also: CGContext

Public Constructors

Creates a bitmap-based CGContext that renders into the specified array.
Creates a bitmap-based CGContext that renders into the specified array.
Creates a bitmap-based CGContext that renders into a block of memory.
Creates a bitmap-based CGContext that renders into a block of memory.

Public Properties

[read-only]
AlphaInfoCGImageAlphaInfo. Gets the alpha information for this CGBitmapContext object, as a CGImageAlphaInfo object, or None if this object is not a bitmap context.
[read-only]
BitmapInfoCGBitmapFlags.
[read-only]
BitsPerComponentnint. Number of bits per component for
[read-only]
BitsPerPixelnint. Number of bits per pixel.
[read-only]
BytesPerRownint. Gets the number of bytes per row for this CGBitmapContext object, or 0 if this object is not a bitmap context.
[read-only]
ColorSpaceCGColorSpace. Gets the color space for this CGBitmapContext object, as a CGColorSpace, or null if this object is not a bitmap context.
[read-only]
DataIntPtr. Gets a pointer to the image data for this CGBitmapContext object, or null if this object is not a bitmap context.
[read-only]
Heightnint. Gets the height for this CGBitmapContext object, in pixels, or 0 if this object is not a bitmap context.
[read-only]
Widthnint. Gets the width for this CGBitmapContext object, in pixels, or 0 if this object is not a bitmap context.

Public Methods

Protected Methods

override
Dispose(Boolean)
Releases the resources used by the CGBitmapContext object.