EncoderParameterValueType 枚举

定义

用于指定图像的 EncoderParameterSave 方法所使用的 SaveAdd 的数据类型。Used to specify 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
继承
EncoderParameterValueType

字段

ValueTypeAscii 2

指定:值的数组是一个以 null 终止的 ASCII 字符串。Specifies that the array of values is a null-terminated ASCII character string. 请注意,EncoderParameter 对象的 NumberOfValues 数据成员指示包括 NULL 结束符在内的字符串长度。Note that the NumberOfValues data member of the EncoderParameter object indicates the length of the character string including the NULL terminator.

ValueTypeByte 1

指定数组中的每个值都是 8 位无符号整数。Specifies that each value in the array is an 8-bit unsigned integer.

ValueTypeLong 4

指定数组中的每个值都是 32 位无符号整数。Specifies that each value in the array is a 32-bit unsigned integer.

ValueTypeLongRange 6

指定数组中的每一个值都是一对 32 位无符号整数。Specifies that each value in the array is a pair of 32-bit unsigned integers. 每一对都表示一个数字区域。Each pair represents a range of numbers.

ValueTypeRational 5

指定数组中的每一个值都是一对 32 位无符号整数。Specifies that each value in the array is 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 位无符号整数。Specifies that each value in the array is 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.

ValueTypeShort 3

指定数组中的每个值都是 16 位无符号整数。Specifies that each value in the array is a 16-bit, unsigned integer.

ValueTypeUndefined 7

指定值的数组是没有定义数据类型的字节的数组。Specifies that the array of values is an array of bytes that has no data type defined.

注解

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 Bitmap对象的或SaveAdd方法时, 将调用编码器。An encoder is invoked when you call the Save or SaveAdd method of a Bitmap object.

EncoderParameter null对象的NumberOfValues数据成员指示包含终止符的字符串的长度。The NumberOfValues data member of the EncoderParameter object indicates the length of the character string including the null terminator.

适用于

另请参阅