iOS Guides | Samples

CoreGraphics.CGImage Class

Represents bitmap images and bitmap masks.

See Also: CGImage

Syntax

public class CGImage : INativeObject, IDisposable

Remarks

Requirements

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

The members of CoreGraphics.CGImage are listed below.

See Also: Object

Public Constructors

Public Properties

[read-only]
AlphaInfoCGImageAlphaInfo. The bitmap configuration.
[read-only]
BitmapInfoCGBitmapFlags. The bitmap configuration.
[read-only]
BitsPerComponentnint. Bits per component
[read-only]
BitsPerPixelnint. The number of bits per pixel.
[read-only]
BytesPerRownint. The number of bytes per row in the image.
[read-only]
ColorSpaceCGColorSpace. The image colorspace.
[read-only]
DataProviderCGDataProvider. Returns the image's data provider.
[read-only]
Decodenfloat*. Returns an array of values that consist of upper and lower limits, into which the corresponding image pixel data are linearly interpolated for decoding.
[read-only]
HandleIntPtr. Handle (pointer) to the unmanaged object representation.
[read-only]
Heightnint. The image height in pixels.
[read-only]
IsMaskBoolean. Whether this image is a mask or a bitmap.
[read-only]
RenderingIntentCGColorRenderingIntent. The rendering intent.
[read-only]
static
ScreenImageCGImage. Takes a screenshot.
[read-only]
ShouldInterpolateBoolean. Whether interpolation is enabled for this image.
[read-only]
UTTypeNSString. Gets the image's universal type identifier.
[read-only]
Widthnint. The image width in pixels.

Public Methods

Clone() : CGImage
Makes a copy of the image.
static
CreateMask(Int32, Int32, Int32, Int32, Int32, CGDataProvider, Boolean, nfloat[]) : CGImage
Creates an image mask.
Dispose()
Releases the resources used by the CGImage object.
Finalize()
Finalizer for the CGImage object
static
FromJPEG(CGDataProvider, Boolean, CGColorRenderingIntent, nfloat[]) : CGImage
Creates a CGImage from a JPEG-encoded image.
static
FromPNG(CGDataProvider, Boolean, CGColorRenderingIntent, nfloat[]) : CGImage
Creates a CGImage from a PNG-encoded image.
WithColorSpace(CGColorSpace) : CGImage
Creates a copy of the image based on the specified colorspace.
WithImageInRect(CGRect) : CGImage
Creates a new image with the dimensions specified in the rectangle
WithMask(CGImage) : CGImage
Creates a new image that has been masked with the specified mask.
WithMaskingColors(nfloat[]) : CGImage
Creats a new image by masking the values in the image with the specified components.

Protected Methods

Dispose(Boolean)
Releases the resources used by the CGImage object.