EncoderParameterValueType 枚举
定义
指定与图像的 Save 或 SaveAdd 方法结合使用的 EncoderParameter 的数据类型。Specifies the data type of the EncoderParameter used with the Save or SaveAdd method of an image.
public enum class EncoderParameterValueType
public enum EncoderParameterValueType
type EncoderParameterValueType =
Public Enum EncoderParameterValueType
- 继承
字段
| ValueTypeAscii | 2 | 8 位 ASCII 值。An 8-bit ASCII value. 此字段指定值的数组是一个以 null 终止的 ASCII 字符串。This field specifies that the array of values is a null-terminated ASCII character string. |
| ValueTypeByte | 1 | 8 位无符号整数。An 8-bit unsigned integer. |
| ValueTypeLong | 4 | 32 位无符号整数。A 32-bit unsigned integer. |
| ValueTypeLongRange | 6 | 指定一系列整数值的两个长值。Two long values that specify a range of integer values. 第一个值指定下限,第二个值指定上限。The first value specifies the lower end, and the second value specifies the higher end. 上限和下限范围内包含所有值。All values are inclusive at both ends. |
| ValueTypePointer | 9 | 指向自定义元数据块的指针。A pointer to a block of custom metadata. |
| ValueTypeRational | 5 | 32 位无符号整数对。A pair of 32-bit unsigned integers. 每一对都表示一个分数,第一个整数是分子,第二个整数是分母。Each pair represents a fraction, the first integer being the numerator and the second integer being the denominator. |
| ValueTypeRationalRange | 8 | 四个 32 位无符号整数组。A set of four 32-bit unsigned integers. 前两个整数表示一个分数,后两个整数表示第二个分数。The first two integers represent one fraction, and the second two integers represent a second fraction. 这两个分数表示一个有理数区域。The two fractions represent a range of rational numbers. 第一个分数是该区域中最小的有理数,第二个分数是该区域中最大的有理数。The first fraction is the smallest rational number in the range, and the second fraction is the largest rational number in the range. 上限和下限范围内包含这些值。The values are inclusive at both ends. |
| ValueTypeShort | 3 | 16 位无符号整数。A 16-bit, unsigned integer. |
| ValueTypeUndefined | 7 | 无定义数据类型的字节。A byte that has no data type defined. 变量可以使用任何值,具体取决于字段定义。The variable can take any value depending on field definition. |
注解
GDI + 使用图像编码器将存储在对象中的图像转换 Bitmap 为各种文件格式。GDI+ uses image encoders to convert the images stored in Bitmap objects to various file formats. 对于 BMP、JPEG、GIF、TIFF 和 PNG 格式,图像编码器内置于 GDI + 中。Image encoders are built into GDI+ for the BMP, JPEG, GIF, TIFF, and PNG formats. 当您调用对象的或方法时,将调用编码器 Save SaveAdd Bitmap 。An encoder is invoked when you call the Save or SaveAdd method of a Bitmap object.
NumberOfValues对象的数据成员 EncoderParameter 指示包含终止符的字符串的长度 null 。The NumberOfValues data member of the EncoderParameter object indicates the length of the character string including the null terminator.