[]
Represents a barcode that can be drawn on a GcGraphics. The supported barcode types are represented by the CodeType enum.
public class GcBarcode
Public Class GcBarcode
Name | Description |
---|---|
GcBarcode() | Initializes a new instance of the GcBarcode class. |
Name | Description |
---|---|
CodeType | Gets or sets the barcode encoding. The default is Code39. |
HorizontalAlignment | Gets or sets the horizontal alignment of the barcode. |
Options | Gets the BarcodeOptions object defining the barcode. |
ScaleFactor | Gets or sets the scale factor applied to the barcode image and caption. The default is 1, larger values increase the barcode size, lesser decrease. |
Text | Gets or sets the value that is encoded by the barcode. |
TextFormat | Gets or sets the text format used to draw the barcode label. |
VerticalAlignment | Gets or sets the vertical alignment of the barcode. |
Name | Description |
---|---|
GetCaption() | Gets the barcode caption. In some cases this may differ from the encoded value. |
ToGcBitmap(int, bool) | Renders the current barcode into a new instance of GcBitmap with the specified resolution. It is the responsibility of the caller to dispose the returned bitmap after use. Note that when the bitmap is drawn on a GcPdfGraphics, it must not be disposed until after the target PDF is saved. |