Barcode.net (WPF版) ver 2.7
.net 開発者向けバーコード作成ライブラリ
読み取り中…
検索中…
一致する文字列を見つけられません
Pao.BarCode.IBarCode インタフェース

GDI+グラフィックスを使用したバーコード生成用インターフェース。 [詳解]

Pao.BarCode.IBarCode の継承関係図
Pao.BarCode.Code128 Pao.BarCode.Code39 Pao.BarCode.Code93 Pao.BarCode.EAN128 Pao.BarCode.GS1_DataBar_14 Pao.BarCode.GS1_DataBar_Expanded Pao.BarCode.GS1_DataBar_Limited Pao.BarCode.ITF Pao.BarCode.JAN13 Pao.BarCode.JAN8 Pao.BarCode.Matrix2of5 Pao.BarCode.NEC2of5 Pao.BarCode.NW7 Pao.BarCode.UPC_A Pao.BarCode.UPC_E

公開メンバ関数

void Draw (string code, float x, float y, float width, float height)
 バーコードを描画します。
void Draw (string code, float x, float y, float width, float height, string imageFilePath)
 コンストラクタでImageFormatを指定した場合、バーコードを画像ファイルに描画します。
void DrawDelicate (string code, float x, float y, float minLineWidth, float height)
 最小線幅を指定してバーコードを描画します。
void DrawDelicate (string code, float x, float y, float minLineWidth, float height, string imageFilePath)
 最小線幅を指定してバーコードを画像ファイルに描画します。
void DrawDirect (string code, float x, float y, float width, float height)
 指定幅(ピクセル)内でバーコードを直接描画します。 Drawメソッドより精度と速度が向上します。
void DrawDirect (string code, float x, float y, float width, float height, string imageFilePath)
 指定幅(ピクセル)内でバーコードを画像ファイルに直接描画します。
void WriteSVG (string code, float x, float y, float width, float height, string filePath)
 バーコードをSVGファイルに出力します。
string WriteSVGToString (string code, float x, float y, float width, float height)
 バーコードをSVG文字列として生成します。

プロパティ

bool TextWrite [get, set]
 バーコードと共にテキストを生成するかどうかを示す値を取得または設定します。
bool TextKintou [get, set]
 描画位置モードを取得または設定します(バーコードを指定幅に合わせるため)。 true: 全体幅内で均等配置でバーコードを描画します。 false: コードを意味するバーの位置にバーコードを描画します(デフォルト)。
Font TextFont [get, set]
 テキスト描画に使用するフォントを取得または設定します。
float RotateAngle [get, set]
 バーコードの回転角度(度単位)を取得または設定します。
float KuroBarChousei [get, set]
 黒バーの微調整用ドット数を取得または設定します。デフォルト値は0です。
float ShiroBarChousei [get, set]
 白バーの微調整用ドット数を取得または設定します。デフォルト値は0です。
GraphicsUnit ImgDrawUnit [get, set]
 画像描画単位を取得または設定します(画像ファイルへの描画時に使用)。
MemoryStream ImageStream [get, set]
 メモリストリームとしてのバーコードイメージデータを取得または設定します。
string ImageBase64 [get]
 Base64エンコードされたバーコードイメージデータを取得します。
float ImgDpi [get, set]
 画像のDPIを取得または設定します(画像ファイルへの描画時に使用)。
bool JustWidthInDrawDirect [get, set]
 DrawDirectメソッドで小数ピクセル値を使用するかどうかを示す値を取得または設定します。 trueの場合:小数値ピクセルの計算を許可し、指定した幅ぴったりにバーコードを描画します。 falseの場合:整数ピクセル値のみを使用し、精度は向上しますが指定幅に完全には合わない場合があります。 既定値はfalseです。

詳解

GDI+グラフィックスを使用したバーコード生成用インターフェース。

コンストラクタについて: 各バーコードクラスはSVG出力専用の引数なしコンストラクタを提供しています。 引数なしコンストラクタを使用した場合、デフォルトでImageFormat.Pngが設定されます。 SVGのみを出力する場合は、引数なしコンストラクタの使用を推奨します。

メソッド詳解

◆ Draw() [1/2]

void Pao.BarCode.IBarCode.Draw ( string code,
float x,
float y,
float width,
float height )

バーコードを描画します。

引数
codeバーコードのコードを文字列で指定します。
x描画位置の始点(左上)のX座標を指定します。
y描画位置の始点(左上)のY座標を指定します。
widthバーコードの全体幅を指定します。
heightバーコードの高さを指定します。

Pao.BarCode.Code128, Pao.BarCode.Code39, Pao.BarCode.Code93, Pao.BarCode.EAN128, Pao.BarCode.GS1_DataBar_14, Pao.BarCode.GS1_DataBar_Expanded, Pao.BarCode.GS1_DataBar_Limited, Pao.BarCode.ITF, Pao.BarCode.JAN13, Pao.BarCode.JAN8, Pao.BarCode.Matrix2of5, Pao.BarCode.NEC2of5, Pao.BarCode.NW7, Pao.BarCode.UPC_A, Pao.BarCode.UPC_E (計15項目)で実装されています。

◆ Draw() [2/2]

void Pao.BarCode.IBarCode.Draw ( string code,
float x,
float y,
float width,
float height,
string imageFilePath )

コンストラクタでImageFormatを指定した場合、バーコードを画像ファイルに描画します。

引数
codeバーコードのコードを文字列で指定します。
x描画位置の始点(左上)のX座標を指定します。
y描画位置の始点(左上)のY座標を指定します。
widthバーコードの全体幅を指定します。
heightバーコードの高さを指定します。
imageFilePath画像ファイルのパスを指定します。

Pao.BarCode.Code128, Pao.BarCode.Code39, Pao.BarCode.Code93, Pao.BarCode.EAN128, Pao.BarCode.GS1_DataBar_14, Pao.BarCode.GS1_DataBar_Expanded, Pao.BarCode.GS1_DataBar_Limited, Pao.BarCode.ITF, Pao.BarCode.JAN13, Pao.BarCode.JAN8, Pao.BarCode.Matrix2of5, Pao.BarCode.NEC2of5, Pao.BarCode.NW7, Pao.BarCode.UPC_A, Pao.BarCode.UPC_E (計15項目)で実装されています。

◆ DrawDelicate() [1/2]

void Pao.BarCode.IBarCode.DrawDelicate ( string code,
float x,
float y,
float minLineWidth,
float height )

最小線幅を指定してバーコードを描画します。

引数
codeバーコードのコードを文字列で指定します。
x描画位置の始点(左上)のX座標を指定します。
y描画位置の始点(左上)のY座標を指定します。
minLineWidth描画するバーコードの最細バー幅を指定します。
heightバーコードの高さを指定します。

Pao.BarCode.Code128, Pao.BarCode.Code39, Pao.BarCode.Code93, Pao.BarCode.EAN128, Pao.BarCode.GS1_DataBar_14, Pao.BarCode.GS1_DataBar_Expanded, Pao.BarCode.GS1_DataBar_Limited, Pao.BarCode.ITF, Pao.BarCode.JAN13, Pao.BarCode.JAN8, Pao.BarCode.Matrix2of5, Pao.BarCode.NEC2of5, Pao.BarCode.NW7, Pao.BarCode.UPC_A, Pao.BarCode.UPC_E (計15項目)で実装されています。

◆ DrawDelicate() [2/2]

void Pao.BarCode.IBarCode.DrawDelicate ( string code,
float x,
float y,
float minLineWidth,
float height,
string imageFilePath )

最小線幅を指定してバーコードを画像ファイルに描画します。

引数
codeバーコードのコードを文字列で指定します。
x描画位置の始点(左上)のX座標を指定します。
y描画位置の始点(左上)のY座標を指定します。
minLineWidth描画するバーコードの最細バー幅を指定します。
heightバーコードの高さを指定します。
imageFilePath画像ファイルのパスを指定します。

Pao.BarCode.Code128, Pao.BarCode.Code39, Pao.BarCode.Code93, Pao.BarCode.EAN128, Pao.BarCode.GS1_DataBar_14, Pao.BarCode.GS1_DataBar_Expanded, Pao.BarCode.GS1_DataBar_Limited, Pao.BarCode.ITF, Pao.BarCode.JAN13, Pao.BarCode.JAN8, Pao.BarCode.Matrix2of5, Pao.BarCode.NEC2of5, Pao.BarCode.NW7, Pao.BarCode.UPC_A, Pao.BarCode.UPC_E (計15項目)で実装されています。

◆ DrawDirect() [1/2]

void Pao.BarCode.IBarCode.DrawDirect ( string code,
float x,
float y,
float width,
float height )

指定幅(ピクセル)内でバーコードを直接描画します。 Drawメソッドより精度と速度が向上します。

引数
codeバーコードのコードを文字列で指定します。
x描画位置の始点(左上)のX座標を指定します。
y描画位置の始点(左上)のY座標を指定します。
widthバーコードの全体幅を指定します。
heightバーコードの高さを指定します。

Pao.BarCode.Code128, Pao.BarCode.Code39, Pao.BarCode.Code93, Pao.BarCode.EAN128, Pao.BarCode.GS1_DataBar_14, Pao.BarCode.GS1_DataBar_Expanded, Pao.BarCode.GS1_DataBar_Limited, Pao.BarCode.ITF, Pao.BarCode.JAN13, Pao.BarCode.JAN8, Pao.BarCode.Matrix2of5, Pao.BarCode.NEC2of5, Pao.BarCode.NW7, Pao.BarCode.UPC_A, Pao.BarCode.UPC_E (計15項目)で実装されています。

◆ DrawDirect() [2/2]

void Pao.BarCode.IBarCode.DrawDirect ( string code,
float x,
float y,
float width,
float height,
string imageFilePath )

指定幅(ピクセル)内でバーコードを画像ファイルに直接描画します。

引数
codeバーコードのコードを文字列で指定します。
x描画位置の始点(左上)のX座標を指定します。
y描画位置の始点(左上)のY座標を指定します。
widthバーコードの全体幅を指定します。
heightバーコードの高さを指定します。
imageFilePath画像ファイルのパスを指定します。

Pao.BarCode.Code128, Pao.BarCode.Code39, Pao.BarCode.Code93, Pao.BarCode.EAN128, Pao.BarCode.GS1_DataBar_14, Pao.BarCode.GS1_DataBar_Expanded, Pao.BarCode.GS1_DataBar_Limited, Pao.BarCode.ITF, Pao.BarCode.JAN13, Pao.BarCode.JAN8, Pao.BarCode.Matrix2of5, Pao.BarCode.NEC2of5, Pao.BarCode.NW7, Pao.BarCode.UPC_A, Pao.BarCode.UPC_E (計15項目)で実装されています。

◆ WriteSVG()

void Pao.BarCode.IBarCode.WriteSVG ( string code,
float x,
float y,
float width,
float height,
string filePath )

バーコードをSVGファイルに出力します。

引数
codeバーコードのコードを文字列で指定します。
x描画位置の始点(左上)のX座標をピクセルで指定します。
y描画位置の始点(左上)のY座標をピクセルで指定します。
widthバーコードの全体幅をピクセルで指定します。
heightバーコードの高さをピクセルで指定します。
filePathSVGファイルのファイル名をフルパスで指定します。

Pao.BarCode.Code128, Pao.BarCode.Code39, Pao.BarCode.Code93, Pao.BarCode.EAN128, Pao.BarCode.GS1_DataBar_14, Pao.BarCode.GS1_DataBar_Expanded, Pao.BarCode.GS1_DataBar_Limited, Pao.BarCode.ITF, Pao.BarCode.JAN13, Pao.BarCode.JAN8, Pao.BarCode.Matrix2of5, Pao.BarCode.NEC2of5, Pao.BarCode.NW7, Pao.BarCode.UPC_A, Pao.BarCode.UPC_E (計15項目)で実装されています。

◆ WriteSVGToString()

string Pao.BarCode.IBarCode.WriteSVGToString ( string code,
float x,
float y,
float width,
float height )

バーコードをSVG文字列として生成します。

引数
codeバーコードのコードを文字列で指定します。
x描画位置の始点(左上)のX座標をピクセルで指定します。
y描画位置の始点(左上)のY座標をピクセルで指定します。
widthバーコードの全体幅をピクセルで指定します。
heightバーコードの高さをピクセルで指定します。
戻り値
SVG形式の文字列。

Pao.BarCode.Code128, Pao.BarCode.Code39, Pao.BarCode.Code93, Pao.BarCode.EAN128, Pao.BarCode.GS1_DataBar_14, Pao.BarCode.GS1_DataBar_Expanded, Pao.BarCode.GS1_DataBar_Limited, Pao.BarCode.ITF, Pao.BarCode.JAN13, Pao.BarCode.JAN8, Pao.BarCode.Matrix2of5, Pao.BarCode.NEC2of5, Pao.BarCode.NW7, Pao.BarCode.UPC_A, Pao.BarCode.UPC_E (計15項目)で実装されています。


このインタフェース詳解は次のファイルから抽出されました: