Edytuj

Udostępnij za pośrednictwem


CGImage Class

Definition

Represents bitmap images and bitmap masks.

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

Constructors

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(IntPtr)

Properties

AlphaInfo

The bitmap configuration.

BitmapInfo

The bitmap configuration.

BitsPerComponent

Bits per component

BitsPerPixel

The number of bits per pixel.

ByteOrderInfo
BytesPerRow

The number of bytes per row in the image.

ColorSpace

The image colorspace.

DataProvider

Returns the image's data provider.

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 (pointer) to the unmanaged object representation.

Height

The image height in pixels.

IsMask

Whether this image is a mask or a bitmap.

PixelFormatInfo
RenderingIntent

The rendering intent.

ScreenImage

Takes a screenshot.

ShouldInterpolate

Whether interpolation is enabled for this image.

UTType

Gets the image's universal type identifier.

Width

The image width in pixels.

Methods

Clone()

Makes a copy of the image.

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

Releases the resources used by the CGImage object.

Dispose(Boolean)

Releases the resources used by the CGImage object.

Finalize()

Finalizer for the CGImage object

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

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

WithImageInRect(CGRect)

Creates a new image with the dimensions specified in the rectangle

WithMask(CGImage)

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

WithMaskingColors(nfloat[])

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

Applies to