《visual C++ 开发实战宝典》p425关于GDI+的属性类PropertyItem的说明

本文详细介绍了GDI+的属性类PropertyItem,包括其用途、成员、设置和获取属性项的方法,以及一系列的图像属性ID标签,如分辨率、颜色配置等,为使用GDI+进行图像处理提供参考。
摘要由CSDN通过智能技术生成

visual C++开发实战宝典》p425关于GDI+的属性类PropertyItem的说明

 http://msdn.microsoft.com/zh-cn/subscriptions/downloads/ms534493.aspx

PropertyItem class

Applies to:desktop apps only

ThePropertyItem class is a helper class for theImage andBitmap classes. APropertyItem object holds one piece of image metadata.

PropertyItem has these types of members:

Data Members

The following table lists the members exposed by the PropertyItem object.

Data Members

Type

Description

id

PROPID

Integer that identifies the kind of metadata stored in this PropertyItem object. Constants that identify various kinds of metadata (PropertyTagEquipMake,PropertyTagEquipModel, and the like) are defined in Gdiplusimaging.h. The PROPID data type is defined in Wtypes.h.

length

ULONG

Size, in bytes, of the value array.

type

WORD

Integer that identifies the data type of the values in the value array. Constants that identify various data types (PropertyTagTypeByte, PropertyTagTypeASCII, and the like) are defined in Gdiplusimaging.h.

value

VOID *

Pointer to an array of values. Each value in the array has the data type specified by the type data member.

 

Remarks

To set a property item (piece of metadata), pass the address of aPropertyItem object to theImage::SetPropertyItem method of anImage object. To retrieve a property item, pass the address of aPropertyItem object to theImage::GetPropertyItem method of anImage object.

Requirements

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值