|
Barcode.net (GDI+版) ver 2.7
.net 開発者向けバーコード作成ライブラリ
|
PDF417を生成するのに用いられるクラスです。 [詳解]
公開型 | |
| enum | SIZE_KIND { AUTO , COLUMNS , ROWS , COLUMNS_AND_ROWS } |
| データ列数・行数決定方法 [詳解] | |
公開メンバ関数 | |
| Pdf417 (Graphics g) | |
| コンストラクタ PDF417 | |
| Pdf417 (String imgFilePath, ImageFormat imgFormat) | |
| コンストラクタ ミリやインチ等の単位で幅・高さを指定し、かつ、dpiを指定して バーコードをファイルに書き込むときに使用する | |
| Pdf417 (ImageFormat imgFormat) | |
| コンストラクタ 指定した画像形式に従い メモリストリーム・Base64エンコードデータとして バーコード画像を作成 | |
| Pdf417 () | |
| デフォルトコンストラクタ(SVG出力対応) | |
| void | paintCode () |
| Paints the barcode. If no exception was thrown a valid barcode is available. | |
| byte[] | getText () |
| Gets the bytes that form the barcode. This bytes should be interpreted in the codepage Cp437. | |
| void | setText (byte[] text) |
| Sets the bytes that form the barcode. This bytes should be interpreted in the codepage Cp437. | |
| void | setText (System.String s) |
| Sets the text that will form the barcode. This text is converted to bytes using the encoding Cp437. | |
| 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 imgFilePath) |
| バーコードを描画する コンストラクタでImageFormat指定時、画像ファイルに描画する。 | |
| void | Draw (byte[] data, float x, float y, float width, float height) |
| バーコードの描画を行う(バイナリ格納) | |
| void | Draw (byte[] data, float x, float y, float width, float height, string imgFilePath) |
| バーコードを描画する(バイナリ格納) コンストラクタでImageFormat指定時、画像ファイルに描画する。 | |
| void | DrawDelicate (string code, float x, float y, float minLinePitch) |
| バーコードの描画を行う | |
| void | DrawDelicate (string code, float x, float y, float minLinePitch, string imgFilePath) |
| バーコードの描画を行います。Draw メソッドとの違いは、バーコード全体の幅を指定するのではなく、バーを描画する一番細い線の幅を指定します。 コンストラクタでImageFormat指定時、画像ファイルに描画する。 | |
| void | DrawDelicate (byte[] data, float x, float y, float minLinePitch) |
| バーコードの描画を行う(バイナリ格納) | |
| void | DrawDelicate (byte[] data, float x, float y, float minLinePitch, string imgFilePath) |
| バーコードの描画を行います。Draw メソッドとの違いは、バーコード全体の幅を指定するのではなく、バーを描画する一番細い線の幅を指定します。 コンストラクタでImageFormat指定時、画像ファイルに描画する。 (バイナリ格納) | |
| 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 imgFilePath) |
| バーコードを指定した幅以内にピクセル単位でダイレクトに描画します。 幅が固定でありませんが、通常のDrawメソッドより精度・描画速度がよいです。 | |
| void | DrawDirect (byte[] data, float x, float y, float width, float height) |
| バーコードを指定した幅以内にピクセル単位でダイレクトに描画します。 幅が固定でありませんが、通常のDrawメソッドより精度・描画速度がよいです。 (バイナリ格納) | |
| void | DrawDirect (byte[] data, float x, float y, float width, float height, string imgFilePath) |
| バーコードを指定した幅以内にピクセル単位でダイレクトに描画します。 幅が固定でありませんが、通常のDrawメソッドより精度・描画速度がよいです。 (バイナリ格納) | |
| void | WriteSVG (string code, float x, float y, float width, float height, string filePath) |
| SVGファイルへのPDF417バーコードの出力を行います。 | |
| void | WriteSVG (string code, float x, float y, float moduleSize, string filePath) |
| SVGファイルへのPDF417バーコードの出力を行います。 (後方互換性のあるオーバーロード - モジュールサイズから自動計算) | |
| string | WriteSVGToString (string code, float x, float y, float width, float height) |
| PDF417バーコードをSVG文字列として生成します。 | |
限定公開メンバ関数 | |
| byte[] | Filter (string sValue) |
プロパティ | |
| Brush | BackColor [get, set] |
| 画像データ保存時のみ有効 直接描画する場合、背景色は透明になります。 | |
| Brush | ForeColor [get, set] |
| バーの色とテキストの色 (ある場合) | |
| float | KuroBarChousei [get, set] |
| [非推奨] このプロパティは 'BlackBarAdjusterByDot' に置き換えられました。 下位互換性のために残されています。 ドットベースの精密調整には 'BlackBarAdjusterByDot' の使用を検討してください。 このプロパティの元の機能: 描画する黒バー幅をドット単位で微細調整できます。 既定値は、0 ドットです。このプロパティに-1 を指定すると、 バーコード内全ての黒バーの幅が1ドットずつ細くなります。 この機能は DrawDirect / DrawDelicate メソッドには有効ですが、 Draw メソッドには無効です。 | |
| float | BlackBarAdjusterByDot [get, set] |
| 描画する黒バー幅をドット単位で微細調整できます。 既定値は、0 ドットです。 例えば、このプロパティに-1 を指定すると、バーコード内全ての黒バーの幅が1ドットずつ細くなります。 プリンタにより、調整が必要な場合にこの機能を使用してください。 ※この機能は。DrawDirect / DrawDelicate メソッドには有効ですが、 Draw メソッドには無効ですのでご注意ください。 | |
| string | StringEncoding [get, set] |
| 全角文字コード Encoding.GetEncoding()の引数は受け付けます。 規定値:"utf-8" 例:"shift-jis" / "932" ...等... | |
| float | RotateAngle [get, set] |
| 回転角度を数値で指定(左下を軸に右回転して描画を行う) | |
| bool | JustWidthInDrawDirect [get, set] |
| DrawDirectメソッドで指定した幅にぴったり合わせるために、小数ピクセル値を使用するかどうかを示す値を取得または設定します。 trueの場合: 小数値ピクセルの計算を許可し、指定した幅ぴったりにバーコードを描画します。 falseの場合: 除算後の整数ピクセル値のみを使用し、これによりバーコードの精度は向上しますが、指定した幅に完全には合わない場合があります。 その結果、指定した幅以内で最大のサイズのバーコードが描画されます。 既定値はfalseです。 | |
| GraphicsUnit | ImgDrawUnit [get, set] |
| 画像描画単位 (画像ファイル出力用) | |
| MemoryStream | ImageStream [get, set] |
| メモリストリームとしてのバーコードイメージデータを取得します。 | |
| string | ImageBase64 [get] |
| Base64エンコードされたバーコードイメージデータを取得します。 | |
| float | ImgDpi [get, set] |
| 画像DPI (画像ファイル出力用) | |
| SIZE_KIND | SizeKind [get, set] |
データ列数・行数決定方法 AUTO 自動サイズ(アスペクト比より決定) COLUMNS 指定列数に従う ROWS 指定行数に従う COLUMNS_AND_LOWS 指定列数・行数両方に従う(長方形の最小値) | |
| int | CodeRows [get, set] |
出力行数指定 3~90 SizeKindが出力行数指定の場合=(自動サイズでない・列数指定でない場合)有効 | |
| int | CodeColumns [get, set] |
出力データカラム数指定 1~30 SizeKindが出力列数指定の場合=(自動サイズでない・行数指定でない場合)有効 | |
| int | ErrorLevel [get, set] |
エラー訂正レベル 0~8 | |
| bool | UseAutoErrorLevel [get, set] |
| 自動でエラー訂正レベルを決定(する・しない) | |
| float | AspectRatio [get, set] |
| 縦横アクセプト比 | |
PDF417を生成するのに用いられるクラスです。
| Pao.BarCode.Pdf417.Pdf417 | ( | Graphics | g | ) |
コンストラクタ PDF417
| g | バーコードの描画を行うGraphicsを指定します。 |
| Pao.BarCode.Pdf417.Pdf417 | ( | String | imgFilePath, |
| ImageFormat | imgFormat ) |
コンストラクタ ミリやインチ等の単位で幅・高さを指定し、かつ、dpiを指定して バーコードをファイルに書き込むときに使用する
| imgFilePath | 画像ファイルパス |
| imgFormat | 画像フォーマット |
| Pao.BarCode.Pdf417.Pdf417 | ( | ImageFormat | imgFormat | ) |
コンストラクタ 指定した画像形式に従い メモリストリーム・Base64エンコードデータとして バーコード画像を作成
| imgFormat | 画像フォーマット |
| void Pao.BarCode.Pdf417.Draw | ( | byte[] | data, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height ) |
バーコードの描画を行う(バイナリ格納)
| data | バーコードに格納するデータをバイト配列で指定 |
| x | 描画位置の始点(左上)のX座標を指定 |
| y | 描画位置の始点(左上)のY座標を指定 |
| width | バーコードの全体の幅を指定 |
| height | バーコードのバーの高さを指定 |
| void Pao.BarCode.Pdf417.Draw | ( | byte[] | data, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height, | ||
| string | imgFilePath ) |
バーコードを描画する(バイナリ格納) コンストラクタでImageFormat指定時、画像ファイルに描画する。
| data | バーコードに格納するデータをバイト配列で指定 |
| x | 描画位置の始点(左上)のX座標を指定 |
| y | 描画位置の始点(左上)のY座標を指定 |
| width | バーコードの全体の幅を指定 |
| height | バーコードのバーの高さを指定 |
| imgFilePath | 画像ファイルパス |
| void Pao.BarCode.Pdf417.Draw | ( | string | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height ) |
バーコードの描画を行う
| code | 描画を行うバーコードのコードを文字列で指定 |
| x | 描画位置の始点(左上)のX座標を指定 |
| y | 描画位置の始点(左上)のY座標を指定 |
| width | バーコードの全体の幅を指定 |
| height | バーコードのバーの高さを指定 |
| void Pao.BarCode.Pdf417.Draw | ( | string | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height, | ||
| string | imgFilePath ) |
バーコードを描画する コンストラクタでImageFormat指定時、画像ファイルに描画する。
| code | 描画を行うバーコードのコードを文字列で指定 |
| x | 描画位置の始点(左上)のX座標を指定 |
| y | 描画位置の始点(左上)のY座標を指定 |
| width | バーコードの全体の幅を指定 |
| height | バーコードのバーの高さを指定 |
| imgFilePath | 画像ファイルパス |
| void Pao.BarCode.Pdf417.DrawDelicate | ( | byte[] | data, |
| float | x, | ||
| float | y, | ||
| float | minLinePitch ) |
バーコードの描画を行う(バイナリ格納)
| data | バーコードに格納するデータをバイト配列で指定 |
| x | 描画位置の始点(左上)のX座標を指定 |
| y | 描画位置の始点(左上)のY座標を指定 |
| minLinePitch | バーコードを描画する間隔の最小幅の値を指定 |
| void Pao.BarCode.Pdf417.DrawDelicate | ( | byte[] | data, |
| float | x, | ||
| float | y, | ||
| float | minLinePitch, | ||
| string | imgFilePath ) |
バーコードの描画を行います。Draw メソッドとの違いは、バーコード全体の幅を指定するのではなく、バーを描画する一番細い線の幅を指定します。 コンストラクタでImageFormat指定時、画像ファイルに描画する。 (バイナリ格納)
| data | バーコードに格納するデータをバイト配列で指定 |
| x | 描画位置の始点(左上)のX座標を指定 |
| y | 描画位置の始点(左上)のY座標を指定 |
| minLinePitch | バーコードを描画するバーの最小ピッチの値を指定 |
| imgFilePath | 画像ファイルパス |
| void Pao.BarCode.Pdf417.DrawDelicate | ( | string | code, |
| float | x, | ||
| float | y, | ||
| float | minLinePitch ) |
バーコードの描画を行う
| code | 描画を行うバーコードのコードを文字列で指定 |
| x | 描画位置の始点(左上)のX座標を指定 |
| y | 描画位置の始点(左上)のY座標を指定 |
| minLinePitch | バーコードを描画する間隔の最小幅の値を指定 |
| void Pao.BarCode.Pdf417.DrawDelicate | ( | string | code, |
| float | x, | ||
| float | y, | ||
| float | minLinePitch, | ||
| string | imgFilePath ) |
バーコードの描画を行います。Draw メソッドとの違いは、バーコード全体の幅を指定するのではなく、バーを描画する一番細い線の幅を指定します。 コンストラクタでImageFormat指定時、画像ファイルに描画する。
| code | 描画を行うバーコードのコードを文字列で指定 |
| x | 描画位置の始点(左上)のX座標を指定 |
| y | 描画位置の始点(左上)のY座標を指定 |
| minLinePitch | バーコードを描画するバーの最小ピッチの値を指定 |
| imgFilePath | 画像ファイルパス |
| void Pao.BarCode.Pdf417.DrawDirect | ( | byte[] | data, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height ) |
バーコードを指定した幅以内にピクセル単位でダイレクトに描画します。 幅が固定でありませんが、通常のDrawメソッドより精度・描画速度がよいです。 (バイナリ格納)
| data | バーコードに格納するデータをバイト配列で指定 |
| x | 描画位置の始点(左上)のX座標を指定 |
| y | 描画位置の始点(左上)のY座標を指定 |
| width | バーコードの全体の幅を指定 |
| height | バーコードのバーの高さを指定 |
| void Pao.BarCode.Pdf417.DrawDirect | ( | byte[] | data, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height, | ||
| string | imgFilePath ) |
バーコードを指定した幅以内にピクセル単位でダイレクトに描画します。 幅が固定でありませんが、通常のDrawメソッドより精度・描画速度がよいです。 (バイナリ格納)
| data | バーコードに格納するデータをバイト配列で指定 |
| x | 描画位置の始点(左上)のX座標を指定 |
| y | 描画位置の始点(左上)のY座標を指定 |
| width | バーコードの全体の幅を指定 |
| height | バーコードのバーの高さを指定 |
| imgFilePath | 画像ファイルパス |
| void Pao.BarCode.Pdf417.DrawDirect | ( | string | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height ) |
バーコードを指定した幅以内にピクセル単位でダイレクトに描画します。 幅が固定でありませんが、通常のDrawメソッドより精度・描画速度がよいです。
| code | 描画を行うバーコードのコードを文字列で指定 |
| x | 描画位置の始点(左上)のX座標を指定 |
| y | 描画位置の始点(左上)のY座標を指定 |
| width | バーコードの全体の幅を指定 |
| height | バーコードのバーの高さを指定 |
| void Pao.BarCode.Pdf417.DrawDirect | ( | string | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height, | ||
| string | imgFilePath ) |
バーコードを指定した幅以内にピクセル単位でダイレクトに描画します。 幅が固定でありませんが、通常のDrawメソッドより精度・描画速度がよいです。
| code | 描画を行うバーコードのコードを文字列で指定 |
| x | 描画位置の始点(左上)のX座標を指定 |
| y | 描画位置の始点(左上)のY座標を指定 |
| width | バーコードの全体の幅を指定 |
| height | バーコードのバーの高さを指定 |
| imgFilePath | 画像ファイルパス |
|
protected |
| sValue |
| byte[] Pao.BarCode.Pdf417.getText | ( | ) |
Gets the bytes that form the barcode. This bytes should be interpreted in the codepage Cp437.
| void Pao.BarCode.Pdf417.setText | ( | byte[] | text | ) |
Sets the bytes that form the barcode. This bytes should be interpreted in the codepage Cp437.
| text | the bytes that form the barcode |
| void Pao.BarCode.Pdf417.setText | ( | System.String | s | ) |
Sets the text that will form the barcode. This text is converted to bytes using the encoding Cp437.
| s | the text that will form the barcode |
UnsupportedEncodingException if the encoding Cp437 is not supported
| void Pao.BarCode.Pdf417.WriteSVG | ( | string | code, |
| float | x, | ||
| float | y, | ||
| float | moduleSize, | ||
| string | filePath ) |
SVGファイルへのPDF417バーコードの出力を行います。 (後方互換性のあるオーバーロード - モジュールサイズから自動計算)
| code | エンコードするデータを文字列で指定 |
| x | 描画位置の始点(左上)のX座標をピクセルで指定 |
| y | 描画位置の始点(左上)のY座標をピクセルで指定 |
| moduleSize | 各モジュールのサイズをピクセルで指定 |
| filePath | SVGファイルのファイル名をフルパスで指定 |
| void Pao.BarCode.Pdf417.WriteSVG | ( | string | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height, | ||
| string | filePath ) |
SVGファイルへのPDF417バーコードの出力を行います。
| code | エンコードするデータを文字列で指定 |
| x | 描画位置の始点(左上)のX座標をピクセルで指定 |
| y | 描画位置の始点(左上)のY座標をピクセルで指定 |
| width | PDF417バーコードの幅をピクセルで指定 |
| height | PDF417バーコードの高さをピクセルで指定 |
| filePath | SVGファイルのファイル名をフルパスで指定 |
| string Pao.BarCode.Pdf417.WriteSVGToString | ( | string | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height ) |
PDF417バーコードをSVG文字列として生成します。
| code | エンコードするデータを文字列で指定 |
| x | 描画位置の始点(左上)のX座標をピクセルで指定 |
| y | 描画位置の始点(左上)のY座標をピクセルで指定 |
| width | PDF417バーコードの幅をピクセルで指定 |
| height | PDF417バーコードの高さをピクセルで指定 |