operator HBITMAP | 返回绑定到CImage对象的Windows句柄. |
Construction
CImage | 构造函数. |
Operations
AlphaBlend | Displays bitmaps that have transparent or semitransparent pixels. 显示包含透明或半透明像素的位图。 |
Attach | Attaches an HBITMAP to a CImage object. Can be used with either non-DIB section bitmaps or DIB section bitmaps. 将一个HBITMAP绑定到一个CImage对象。既可以用于DIB类型位图也可以用于非DIB类型位图。 |
BitBlt | Copies a bitmap from the source device context to this current device context. 从源设备描述表复制位图到当前设备描述表。 |
Create | Creates a DIB section bitmap and attaches it to the previously constructed CImage object. 创建一个DIB类型位图并将它绑定到前边构造好的CImage对象。 |
CreateEx | Creates a DIB section bitmap (with additional parameters) and attaches it to the previously constructed CImage object. 创建一个DIB类型的位图(使用额外的参数)并将它绑定到前边构造好的CImage对象。 |
Destroy | Detaches the bitmap from the CImage object and destroys the bitmap. 解除位图和CImage对象的绑定并销毁位图。 |
Detach | Detaches the bitmap from a CImage object. 解除位图和CImage对象的绑定。 |
Draw | Copies a bitmap from a source rectangle into a destination rectangle. Draw stretches or compresses the bitmap to fit the dimensions of the destination rectangle, if necessary, and handles alpha blending and transparent colors. 从源矩形区域复制一个位图到目标矩形区域。Draw拉伸或压缩位图以适应目标矩形区域的尺寸,如果必要,将处理alpha混合和透明色。 |
GetBits | Retrieves a pointer to the actual pixel values of the bitmap. 得到指向位图一个实际像素值的指针。 |
GetBPP | Retrieves the bits per pixel. 得到每个像素的比特位。 |
GetColorTable | Retrieves red, green, blue (RGB) color values from a range of entries in the color table. 从颜色表中的入口范围得到红,绿,蓝(RGB)颜色值。 |
GetDC | Retrieves the device context into which the current bitmap is selected. 得到选入当前位图的设备描述表。 |
GetExporterFilterString | Finds the available image formats and their descriptions. 获得可用的图像格式和描述。 |
GetImporterFilterString | Finds the available image formats and their descriptions. 获得可用的图像格式和描述。 |
GetHeight | Retrieves the height of the current image in pixels. 得到当前图像高度的像素值。 |
GetMaxColorTableEntries | Retrieves the maximum number of entries in the color table. 得到颜色表中入口的最大值。 |
GetPitch | Retrieves the pitch of the current image, in bytes. 得到代表目前图像斜度的字节数。 |
GetPixelAddress | Retrieves the address of a given pixel. 得到给定像素的地址。 |
GetPixel | Retrieves the color of the pixel specified by x and y. 得到指定x和y的像素的颜色。 |
GetTransparentColor | Retrieves the position of the transparent color in the color table. 得到颜色表中透明色的位置。 |
GetWidth | Retrieves the width of the current image in pixels. 得到当前图像宽度的像素值。 |
IsDibSection | Determines if the attached bitmap is a DIB section. 判断绑定的位图是否是DIB类型。 |
IsIndexed | Indicates that a bitmap's colors are mapped to an indexed palette. 表明位图的颜色映射到一个索引的调色板。 |
IsNull | Indicates if a source bitmap is currently loaded. 表明源位图当前是否装载。 |
IsTransparencySupported | Indicates whether the application supports transparent bitmaps and was compiled for Windows 2000 or later. 表明应用程序是否支持透明位图并为Windows 2000及以后版本编译。 |
LoadFromResource | Loads an image from the specified resource. 从指定的资源装载一个图像。 |
Load | Loads an image from the specified file. 从指定的文件装载一个图像。 |
MaskBlt | Combines the color data for the source and destination bitmaps using the specified mask and raster operation. 使用指定的掩码和栅格操作混合源位图和目标位图的颜色数据。 |
PlgBlt | Performs a bit-block transfer from a rectangle in a source device context into a parallelogram in a destination device context. 实现从一个源设备描述表传送一个比特块到目标设备描述表的一个平行四边形区域。 |
ReleaseDC | Releases the device context that was retrieved with CImage::GetDC. 释放用CImage::GetDC得到的设备描述表。 |
ReleaseGDIPlus | Releases resources used by GDI+. Must be called to free resources created by a global CImage object. 释放GDI+使用的资源。必须调用以便释放由全局CImage对象创建的资源。 |
Save | Saves an image as the specified type. Save cannot specify image options. 用指定的类型保存图像。Save不能指定图像选项。 |
SetColorTable | Sets red, green, blue RGB) color values in a range of entries in the color table of the DIB section. 设置DIB类型颜色表中入口范围的红,绿,蓝(RGB)颜色值。 |
SetPixelIndexed | Sets the pixel at the specified coordinates to the color at the specified index of the palette. 设置指定坐标的像素为调色板中指定索引的颜色值。 |
SetPixelRGB | Sets the pixel at the specified coordinates to the specified red, green, blue (RGB) value. 设置指定坐标的像素为指定的红,绿,蓝(RGB)值。 |
SetPixel | Sets the pixel at the specified coordinates to the specified color. 设置指定坐标的像素为指定的颜色值。 |
SetTransparentColor | Sets the index of the color to be treated as transparent. Only one color in a palette can be transparent. 设置被作为透明色处理的颜色的索引值。 |
StretchBlt | Copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary. 从源矩形区域复制一个位图到目标矩形区域,如果必要,将拉伸或压缩位图以适应目标矩形区域的尺寸。 |
TransparentBlt | Copies a bitmap with transparent color from the source device context to this current device context. 从源设备描述表复制一个带透明色的位图到当前设备描述表。 |