DioDocs for PDF
ToBilevelBitmap メソッド

DS.Documents.Imaging アセンブリ > GrapeCity.Documents.Imaging 名前空間 > GcBitmap クラス : ToBilevelBitmap メソッド
The color channel used as the source of the bi-level data.
If true, pixels are arranged within a byte such that pixels with lower column indices are stored in the lower-order bits of the byte.
If true, indicates that 0 represents white and 1 represents black in the resulting BilevelBitmap.
Creates a BilevelBitmap from the current GcBitmap.

This method does not perform any transformations of the color palette. It is expected that the source GcBitmap has already been converted to bi-level palette using some thresholding or dithering effects. The ToBilevelBitmap method just copies data from a specified color channel to a new instance of the BilevelBitmap class.

シンタックス
'宣言
 
Public Function ToBilevelBitmap( _
   Optional ByVal colorChannel As ColorChannel, _
   Optional ByVal lowerBitsFirst As System.Boolean, _
   Optional ByVal whiteIsZero As System.Boolean _
) As BilevelBitmap
public BilevelBitmap ToBilevelBitmap( 
   ColorChannel colorChannel,
   System.bool lowerBitsFirst,
   System.bool whiteIsZero
)

パラメータ

colorChannel
The color channel used as the source of the bi-level data.
lowerBitsFirst
If true, pixels are arranged within a byte such that pixels with lower column indices are stored in the lower-order bits of the byte.
whiteIsZero
If true, indicates that 0 represents white and 1 represents black in the resulting BilevelBitmap.

戻り値の型

A new instance of BilevelBitmap.
参照

GcBitmap クラス
GcBitmap メンバ