CGImage CGImage Class

Definition

Represents bitmap images and bitmap masks.

public class CGImage : IDisposable, ObjCRuntime.INativeObject
type CGImage = class
    interface INativeObject
    interface IDisposable
Inheritance
CGImageCGImage
Implements

Constructors

CGImage(IntPtr) CGImage(IntPtr)
CGImage(Int32, Int32, Int32, Int32, Int32, CGColorSpace, CGBitmapFlags, CGDataProvider, nfloat[], Boolean, CGColorRenderingIntent) CGImage(Int32, Int32, Int32, Int32, Int32, CGColorSpace, CGBitmapFlags, CGDataProvider, nfloat[], Boolean, CGColorRenderingIntent)
CGImage(Int32, Int32, Int32, Int32, Int32, CGColorSpace, CGImageAlphaInfo, CGDataProvider, nfloat[], Boolean, CGColorRenderingIntent) CGImage(Int32, Int32, Int32, Int32, Int32, CGColorSpace, CGImageAlphaInfo, CGDataProvider, nfloat[], Boolean, CGColorRenderingIntent)

Properties

AlphaInfo AlphaInfo

The bitmap configuration.

BitmapInfo BitmapInfo

The bitmap configuration.

BitsPerComponent BitsPerComponent

Bits per component

BitsPerPixel BitsPerPixel

The number of bits per pixel.

ByteOrderInfo ByteOrderInfo
BytesPerRow BytesPerRow

The number of bytes per row in the image.

ColorSpace ColorSpace

The image colorspace.

DataProvider DataProvider

Returns the image's data provider.

Decode Decode

Returns an array of values that consist of upper and lower limits, into which the corresponding image pixel data are linearly interpolated for decoding.

Handle Handle

Handle (pointer) to the unmanaged object representation.

Height Height

The image height in pixels.

IsMask IsMask

Whether this image is a mask or a bitmap.

PixelFormatInfo PixelFormatInfo
RenderingIntent RenderingIntent

The rendering intent.

ScreenImage ScreenImage

Takes a screenshot.

ShouldInterpolate ShouldInterpolate

Whether interpolation is enabled for this image.

UTType UTType

Gets the image's universal type identifier.

Width Width

The image width in pixels.

Methods

Clone() Clone()

Makes a copy of the image.

CreateMask(Int32, Int32, Int32, Int32, Int32, CGDataProvider, nfloat[], Boolean) CreateMask(Int32, Int32, Int32, Int32, Int32, CGDataProvider, nfloat[], Boolean)
Dispose(Boolean) Dispose(Boolean)

Releases the resources used by the CGImage object.

Dispose() Dispose()

Releases the resources used by the CGImage object.

Finalize() Finalize()

Finalizer for the CGImage object

FromJPEG(CGDataProvider, nfloat[], Boolean, CGColorRenderingIntent) FromJPEG(CGDataProvider, nfloat[], Boolean, CGColorRenderingIntent)
FromPNG(CGDataProvider, nfloat[], Boolean, CGColorRenderingIntent) FromPNG(CGDataProvider, nfloat[], Boolean, CGColorRenderingIntent)
WithColorSpace(CGColorSpace) WithColorSpace(CGColorSpace)

Creates a copy of the image based on the specified colorspace.

WithImageInRect(CGRect) WithImageInRect(CGRect)

Creates a new image with the dimensions specified in the rectangle

WithMask(CGImage) WithMask(CGImage)

Creates a new image that has been masked with the specified mask.

WithMaskingColors(nfloat[]) WithMaskingColors(nfloat[])

Creats a new image by masking the values in the image with the specified components.

Applies to