iOS Guides | Samples

MonoTouch.CoreGraphics.CGImage Class

Represents bitmap images and bitmap masks.

See Also: CGImage

Syntax

public class CGImage : INativeObject, IDisposable

Remarks

Requirements

Namespace: MonoTouch.CoreGraphics
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.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]
BitsPerComponentInt32. Bits per component
[read-only]
BitsPerPixelInt32. The number of bits per pixel.
[read-only]
BytesPerRowInt32. 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]
DecodeSingle*. 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]
HeightInt32. 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]
WidthInt32. The image width in pixels.

Public Methods

Clone() : CGImage
Makes a copy of the image.
static
CreateMask(Int32, Int32, Int32, Int32, Int32, CGDataProvider, Single[], Boolean) : CGImage
Creates an image mask.
Dispose()
Releases the resources used by the CGImage object.
Finalize()
Finalizer for the CGImage object
static
FromJPEG(CGDataProvider, Single[], Boolean, CGColorRenderingIntent) : CGImage
Creates a CGImage from a JPEG-encoded image.
static
FromPNG(CGDataProvider, Single[], Boolean, CGColorRenderingIntent) : CGImage
Creates a CGImage from a PNG-encoded image.
WithColorSpace(CGColorSpace) : CGImage
Creates a copy of the image based on the specified colorspace.
WithImageInRect(RectangleF) : 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(Single[]) : 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.