ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Barcode in multi layer image
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

scpsolutions

Canada
6 Posts

Posted - Nov 03 2022 :  12:47:44  Show Profile  Reply
Hi,

I need to create labels that contain various pieces of information. The layer component will do the trick it seems. However I need to include barcodes. Is there a recommended approach to inserting/creating barcodes.

Right now the only thing I can think of is use another component(such as https://www.han-soft.com/barcode1d.php) off screen to generate barcodes, save the in a bitmap and insert that bitmap into a layer. Just wondering if there is a better approach since I would rather not reinvent the wheel.

Thanks,
Marc

xequte

38686 Posts

Posted - Nov 03 2022 :  22:51:19  Show Profile  Reply
Hi Marc

If the barcode is only to be associated with the layer (not displayed) then you could either store it elsewhere and reference it by index using Layer.Tag:

https://www.imageen.com/help/TIELayer.Tag.html

Or you could store it in the user data field:

http://www.imageen.com/help/TIELayer.UserData.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

scpsolutions

Canada
6 Posts

Posted - Nov 04 2022 :  06:08:29  Show Profile  Reply
Thanks Nigel,

Storing would have been my next questions :)

But I do need to display the barcode as an image. So is the method of doing it offscreen in another component and copying its content to a image layer the best way to go. Or can you think of a better way. I already know this would be a pain if there is more than 1 barcode and that isn't considering all the formats.

Thanks,
Marc

Marc Ouellette
Go to Top of Page

xequte

38686 Posts

Posted - Nov 06 2022 :  14:19:22  Show Profile  Reply
Hi Marc

Sorry, I'm not really understanding your requirements. Are you saying you have an image and you add a barcode to it? Or are there multiple barcodes displayed per image?

At any rate, if they are being displayed then you should put them into an image layer. If you save to .ImageEn format then the layers will be maintained. Other alternatives to this are storing the images as annotations to JPEG or TIFF files, for example.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

scpsolutions

Canada
6 Posts

Posted - Nov 06 2022 :  19:37:16  Show Profile  Reply
Sorry Nigel if I am not clear.

I don't have a barcode at the moment but I need one. The only thing I could think of doing is generating one off screen using another component and adding it as a layer, like you said. I was asking if there was a better way of doing it than that. If there is a barcode library that is recommended it would be great.

Marc

Marc Ouellette
Go to Top of Page

xequte

38686 Posts

Posted - Nov 06 2022 :  22:28:23  Show Profile  Reply
Sorry Marc, I should have read the first message better. I can't make any recommendations for third-party barcode libraries, as I do not have experience in the area.
Whichever one you use, it will be able to generate a bitmap image that you an assign to a layer.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: