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. 請注意,NumberOfValues 物件的 EncoderParameter 資料成員會指示含有 null 結束字元 (Terminator) 的字元字串長度。Note that the NumberOfValues data member of the EncoderParameter object indicates the length of the character string including the NULL terminator.

ValueTypeByte 1

指定陣列中的每個值為 8 位元不帶正負號的整數 (Unsigned Integer)。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. 當您呼叫 Bitmap 物件的 SaveSaveAdd 方法時,就會叫用編碼器。An encoder is invoked when you call the Save or SaveAdd method of a Bitmap object.

EncoderParameter 物件的 NumberOfValues 資料成員指出字元字串的長度,包括 null 結束字元。The NumberOfValues data member of the EncoderParameter object indicates the length of the character string including the null terminator.

適用於

另請參閱