iOS Guides | Samples

MonoTouch.CoreGraphics.CGImage Class

Represents bitmap images and bitmap masks.

See Also: CGImage


public class CGImage : INativeObject, IDisposable



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

The members of MonoTouch.CoreGraphics.CGImage are listed below.

See Also: Object

Public Constructors

Public Properties

AlphaInfoCGImageAlphaInfo. The bitmap configuration.
BitmapInfoCGBitmapFlags. The bitmap configuration.
BitsPerComponentInt32. Bits per component
BitsPerPixelInt32. The number of bits per pixel.
BytesPerRowInt32. The number of bytes per row in the image.
ColorSpaceCGColorSpace. The image colorspace.
DataProviderCGDataProvider. Returns the image's data provider.
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.
HandleIntPtr. Handle (pointer) to the unmanaged object representation.
HeightInt32. The image height in pixels.
IsMaskBoolean. Whether this image is a mask or a bitmap.
RenderingIntentCGColorRenderingIntent. The rendering intent.
ScreenImageCGImage. Takes a screenshot.
ShouldInterpolateBoolean. Whether interpolation is enabled for this image.
UTTypeNSString. Gets the image's universal type identifier.
WidthInt32. The image width in pixels.

Public Methods

Clone() : CGImage
Makes a copy of the image.
CreateMask(Int32, Int32, Int32, Int32, Int32, CGDataProvider, Single[], Boolean) : CGImage
Creates an image mask.
Releases the resources used by the CGImage object.
Finalizer for the CGImage object
FromJPEG(CGDataProvider, Single[], Boolean, CGColorRenderingIntent) : CGImage
Creates a CGImage from a JPEG-encoded image.
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

Releases the resources used by the CGImage object.