Advanced processing of barcodes

In order to extend the existing application possibilities of barcodes, there will be an additional barcode object from the upcoming conzept 16 version 5.8.09.

Abbildung einer Palette in conzept 16 // © vectorsoft

The processing of barcodes is currently limited to print output. With the new barcode object, these can be easily integrated into dialogs. In addition to pure display, the object also supports saving barcodes as image files in BMP, JPG, PNG and TIFF formats via function WinBarcodeSaveImage().

This opens up a wide range of possibilities for further use. For example, you could add barcode output to your own word processing system based on the DocEdit or RtfEdit object.

Similar to the “PrtBarcode” print object, the content and symbolism of the code is defined via the properties wpCaption and wpTypeBarcode.

The following example shows how a QR code is generated during runtime and saved as an image:

sub CreateBarCode()
local
{
  tBarcode : handle;
}

{
  // Create barcode object
  tBarcode # WinCreate(_WinTypeBarcode);

  if (tBarcode > 0)
  {
    // Set barcode to 100 x 100 pixels
    tBarcode->wpArea # RectMake(0,0,100,100);

    // Define barcode type and content.
    tBarcode->wpTypeBarcode # _WinBarcode2dQRCode;
    tBarcode->wpCaption     # 'www.vectorsoft.de';

    // Save barcode as image
    tBarcode->WinBarcodeSaveImage(_Sys->spPathMyPictures + '\QRCode.jpg',_WinImageFormatJPG);

    // Release barcode object
    tBarcode->WinDestroy();
  }
}

Related articles:

Scan me
Erzeugen von Barcodes

Leave a Reply

Your email address will not be published. Required fields are marked *

Leave the field below empty!

Your yeet Trial Version - request it now!

TEST yeet - NON-BINDING and FREE OF CHARGE

Deine yeet Trial Version - jetzt anfordern!

TESTE YEET UNVERBINDLICH UND KOSTENFREI

IHRE EVALUIERUNGSLIZENZ - JETZT ANFORDERN!

TESTEN SIE DIE CONZEPT 16 VOLLVERSION - UNVERBINDLICH und KOSTENFREI

Subscribe to our newsletter

[cleverreach_signup]
WordPress Cookie Notice by Real Cookie Banner