|
Barcode.net (ImageSharp版) ver 2.7
.net 開発者向けバーコード作成ライブラリ
|
GDI+グラフィックスを使用したバーコード生成用インターフェース。 [詳解]
公開メンバ関数 | |
| 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文字列として生成します。 | |
GDI+グラフィックスを使用したバーコード生成用インターフェース。
コンストラクタについて: 各バーコードクラスはSVG出力専用の引数なしコンストラクタを提供しています。 引数なしコンストラクタを使用した場合、デフォルトでImageFormat.Pngが設定されます。 SVGのみを出力する場合は、引数なしコンストラクタの使用を推奨します。
| 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項目)で実装されています。
| 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項目)で実装されています。
| 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項目)で実装されています。
| 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項目)で実装されています。
| 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項目)で実装されています。
| 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項目)で実装されています。
| 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 | バーコードの高さをピクセルで指定します。 |
| filePath | 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項目)で実装されています。
| string Pao.BarCode.IBarCode.WriteSVGToString | ( | string | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height ) |
バーコードをSVG文字列として生成します。
| 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項目)で実装されています。