You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Drawing (Bar Codes) > Barcode1DWrite Method > Barcode1DWrite Method (Integer, Barcode1DWriterType, String, Integer, Integer, Integer, Integer, Color, BarcodeAlign, Single)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.Barcode1DWrite Method (Integer, Barcode1DWriterType, String, Integer, Integer, Integer, Integer, Color, BarcodeAlign, Single)

Draws a 1D barcode on a GdPicture image. This function accepts a parameter to specify rotation and another one to specify the barcode alignment into the specified bounding box. The default alignment is centered.

C#
public GdPictureStatus Barcode1DWrite(
    int ImageID, 
    Barcode1DWriterType BarcodeType, 
    String Data, 
    int DstLeft, 
    int DstTop, 
    int DstWidth, 
    int DstHeight, 
    Color FillColor, 
    BarcodeAlign Alignment, 
    Single Angle
);
Visual Basic
Public Function Barcode1DWrite(
    ByVal ImageID As Integer, 
    ByVal BarcodeType As Barcode1DWriterType, 
    ByVal Data As String, 
    ByVal DstLeft As Integer, 
    ByVal DstTop As Integer, 
    ByVal DstWidth As Integer, 
    ByVal DstHeight As Integer, 
    ByVal FillColor As Color, 
    ByVal Alignment As BarcodeAlign, 
    ByVal Angle As Single
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
BarcodeType 
A member of the Barcode1DWriterType enumeration. 
Data 
The data of the barcode to encode. 
DstLeft 
Left pixel destination of to top-left corner of bounding box the barcode. 
DstTop 
Top pixel destination of to top-left corner of bounding box of the barcode. 
DstWidth 
Width of the bounding box of the barcode. 
DstHeight 
Height of the bounding box of the barcode. 
FillColor 
Color Object. You can build a Color Object using the ARGB() function. Color used to draw the barcode.  
Alignment 
A member of the BarcodeAlign enumeration. 
Angle 
The rotation of the barcode in degrees. 
Returns

A member of the GdPictureStatus enumeration.

To use this function, you have to add a reference to the GdPicture.NET.Barcode.1D.Writer.dll assembly: 

  • Select Project / Add Reference...
  • Select the Browse tab and select the GdPicture.NET.Barcode.1D.Writer.dll library which can be found on C:\Program Files\GdPicture.NET\Redist\Framework X.X\GdPicture.NET.Barcode.1D.Writer.dll
 

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.