CGImage 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示位图图像和位图掩码。
public class CGImage : IDisposable, ObjCRuntime.INativeObject
type CGImage = class
interface INativeObject
interface IDisposable
- 继承
-
CGImage
- 实现
构造函数
属性
| AlphaInfo |
位图配置。 |
| BitmapInfo |
位图配置。 |
| BitsPerComponent |
每个组件的位数 |
| BitsPerPixel |
每像素位数。 |
| ByteOrderInfo |
表示位图图像和位图掩码。 |
| BytesPerRow |
图像中每行的字节数。 |
| ColorSpace |
图像颜色空间。 |
| DataProvider |
返回图像的数据提供程序。 |
| Decode |
返回由上限和下限组成的值数组,相应的图像像素数据将线性内插进行解码。 |
| Handle |
处理指向非托管对象表示形式的 (指针) 。 |
| 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[]) |
通过使用指定的组件屏蔽映像中的值,创建新映像。 |