Home|Download|Buy online|Affiliates|Search|Feedback|Site Map|ReviewsUse our online RSS & XML news feeds to get the latest news about our products delivered to your desktop... RSS feed    17.05.2012
Home»Code128 barcode»SDK
Find out more how to use BestView...
A more detailed description

A more detailed description

Here is the detailed description of the member functions of this class:

  • CODE128()

    CODE128()

    Default constructor

  • SetXResolution

    void SetXResolution (int xres);

    The function sets the horizontal resolution of the output device.

    Parameters:

    xres

    [in] - The horizontal resolution of the output device.

  • SetYResolution

    void SetYResolution (int yres);

    The function sets the vertical resolution of the output device.

    Parameters:

    yres

    [in] - The vertical resolution of the output device.

  • SetOneModuleWidth

    void SetOneModuleWidth (float width);

    The function sets the width of one module ( module is the term of the barcode technology).

    Parameters:

    width

    [in] - This is width of one module ( in millimeters).

  • GetOneModuleWidth

    float GetOneModuleWidth (void);

    The function returns the width of one module ( module is the term of the barcode technology).

    Return value: the width of one module.

  • SetCodeString

    void SetCodeString (LPCTSTR psz);

    The function sets the output string (a set of digits and letters).

    Parameters:

    psz

    [in] - The pointer to the C like string.

  • Draw

    void Draw ( HDC dc, int x0, int y0, int Height, COLORREF Color );

    The function draws the barcode.

    Parameters:

    dc

    [in] - The output device context.

    x0

    [in] - This is the horizontal offset from the origin, left edge of barcode. The offset is measured in logical device units.

    y0

    [in] - This is the vertical offset from the origin, top edge of barcode. The offset is measured in logical device units.

    Height

    [in] - This is the height of the barcode. Measured in logical device units.

    Color

    [in] - The color of the barcode. May be constructed with RGB macro.

  • SetLeadIn

    void SetLeadIn (int modules);

    The function sets the LeadIn for the barcode.

    Parameters:

    modules

    [in] - This is the number of modules (empty space) that will be kept before the barcode.

  • SetLeadOut

    void SetLeadOut (int modules);

    The function sets the LeadOut for the barcode.

    Parameters:

    modules

    [in] - This is the number of modules (empty space) that will be kept after the barcode.

  • GetLeadIn

    int GetLeadIn (void );

    The function returns the number of empty modules before the barcode.

    Return value: the number of LeadIn modules.

  • GetLeadOut

    int GetLeadOut (void );

    The function returns the number of empty modules after the barcode.

    Return value: the number of GetLeadOut modules.

  • GetMetricsDescription

    LPCTSTR GetMetricsDescription (void );

    The function returns the human readable description of the barcode metrics. Usually used for debugging purposes.

    Return value: the description.

  • GetLengthInModules

    int GetLengthInModules (void );

    The function returns the width of the barcode in modules.

    Return value: the number of modules.

  • SetLeadInAndLeadOutFlag

    void SetLeadInAndLeadOutFlag (BOOL bDrawLead);

    The function sets an internal flag that controls leads of the barcode. If the flag is set then before and after the drawn barcode will be two empty spaces (called LeadIn and LeadOut). The leads are the requirement of Code 128 standart.

    Parameters:

    bDrawLead

    [in] - If TRUE then the leads will be drawn.

  • GetLeadInAndLeadOutFlag

    BOOL GetLeadInAndLeadOutFlag (void);

    The function returns the value of an internal flag that controls the leads.

    Parameters:

    Return value: Value of the flag.

Valid HTML 4.01 Transitional© PVL team, 2004-2012, all rights reserved. This Web site and its entire contents are for personal use only and may not be copied, reproduced, modified, published or distributed in any way,without PVL team's prior written permission.