共用方式為


CGImage 類別

定義

表示點陣圖影像和點陣圖遮罩。

public class CGImage : IDisposable, ObjCRuntime.INativeObject
type CGImage = class
    interface INativeObject
    interface IDisposable
繼承
CGImage
實作

建構函式

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)

表示點陣圖影像和點陣圖遮罩。

屬性

AlphaInfo

點陣圖組態。

BitmapInfo

點陣圖組態。

BitsPerComponent

每個元件的位數

BitsPerPixel

每個圖元的位數。

ByteOrderInfo

表示點陣圖影像和點陣圖遮罩。

BytesPerRow

影像中每個資料列的位元組數目。

ColorSpace

影像色彩空間。

DataProvider

傳回影像的資料提供者。

Decode

傳回值陣列,其中包含上限和下限,對應影像圖元資料會以線性方式插補進行解碼。

Handle

處理 unmanaged 物件標記法) (指標。

Height

影像高度以圖元為單位。

IsMask

這個影像是遮罩或點陣圖。

PixelFormatInfo

表示點陣圖影像和點陣圖遮罩。

RenderingIntent

轉譯意圖。

ScreenImage

擷取螢幕擷取畫面。

ShouldInterpolate

是否為此映射啟用插補。

UTType

取得影像的通用類型識別碼。

Width

以圖元為單位的影像寬度。

方法

Clone()

製作映射的複本。

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

表示點陣圖影像和點陣圖遮罩。

Dispose()

釋放 CGImage 物件所使用的資源。

Dispose(Boolean)

釋放 CGImage 物件所使用的資源。

Finalize()

CGImage 物件的完成項

FromJPEG(CGDataProvider, nfloat[], Boolean, CGColorRenderingIntent)

表示點陣圖影像和點陣圖遮罩。

FromPNG(CGDataProvider, nfloat[], Boolean, CGColorRenderingIntent)

表示點陣圖影像和點陣圖遮罩。

ScreenImage(Int32, CGRect)

表示點陣圖影像和點陣圖遮罩。

WithColorSpace(CGColorSpace)

根據指定的色彩空間建立影像複本。

WithImageInRect(CGRect)

使用矩形中指定的維度建立新的影像

WithMask(CGImage)

建立已使用指定遮罩遮罩的新影像。

WithMaskingColors(nfloat[])

使用指定的元件遮罩影像中的值,以建立新的影像。

適用於