vs2005中的类CImage可以很方便处理图像

本文详细介绍了 CImage 类的各种操作和属性,包括构造方法、获取和设置位图像素、位图混合显示等。此外还提供了如何使用 CImage 类来创建、销毁、绘制位图的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

 

Operators

operator HBITMAP

Returns the Windows handle attached to the CImage object.

Construction

CImage

The constructor.

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.

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.

CreateEx

Creates a DIB section bitmap (with additional parameters) and attaches it to the previously constructed CImage object.

Destroy

Detaches the bitmap from the CImage object and destroys the bitmap.

Detach

Detaches the bitmap from a CImage object.

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.

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.

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值