Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Barcode generation library

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-24-2009, 05:46 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default Barcode generation library

Here is a library I put together from various open source projects. I used it for generating bar codes to read off my computer screen when testing my http://www.basic4ppc.com/forum/addit...r-library.html

It offers DataMatrix 2D barcodes and a variety of 1D barcodes. It could also generate QRcode 2D barcodes but that requires a large number of configuration files (5.8Mb!) and they won't zip up small enough for the forum to accept so I can't include them. That seems an excessive overhead to me when DataMatrix seems just as good and anyway QuickMark can decode the square format DataMatrix codes (but apparently not the rectangular ones!).

As it is really only a "play with" library I don't intend to offer a help file as to produce valid barcodes you need to know some technical details about them, such as checksum calculations, so Google is probably best for that. The properties and methods of the objects should be straightforward to work out. The filetypes for SaveImage are "J" for jpg, "B" for bmp, "G" for gif and "P" for png.
Attached Files
File Type: zip BarCodes1.0.zip (36.0 KB, 251 views)

Last edited by agraham : 03-24-2009 at 05:53 PM.
Reply With Quote
  #2 (permalink)  
Old 01-28-2010, 12:51 PM
Bobbes's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Posts: 232
Default

Hi agraham,
I want to save the image1.image on the Desktop but no file on saved.
I used the BCenc.saveimage(image1.image,"B") but no pic saved.

sorry for my bad english


Bernd
__________________
Schönen Gruß
Bernd


MDA Compact
MDA Vario
MDA Vario III
Reply With Quote
  #3 (permalink)  
Old 01-28-2010, 01:42 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Bobbes View Post
I used the BCenc.saveimage(image1.image,"B") but no pic saved.
I'm afraid you are using it wrong. You give it the filepath as a string and it saves its' internal image to that file.

BCenc.saveimage(filepath,"B")
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #4 (permalink)  
Old 01-28-2010, 06:20 PM
Bobbes's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Posts: 232
Default

Thank you very much,
now it runs perfectly.




Bernd
__________________
Schönen Gruß
Bernd


MDA Compact
MDA Vario
MDA Vario III
Reply With Quote
  #5 (permalink)  
Old 02-25-2011, 03:12 AM
Newbie
 
Join Date: Feb 2011
Location: Mumbai, India
Posts: 7
Send a message via Skype™ to thecrowkaka
Default

Dear Agraham

This is a fantastic library indeed.

You should have built a Help file for this library. What does the Pixelarray stand for? how to use this?
I want to have an array of "0" and "1" where a "0" corresponds to the white square and "1" corresponds to the black square in the datamatrix code.
Can this pixelarray give me this array?
If not then can you update this library to give such an array?

Kaushik Kale.
Reply With Quote
  #6 (permalink)  
Old 02-25-2011, 08:30 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I gave the reasons why I didn't provide a help in the first post.

Dim pixels(0,0) As Byte
pixels = DMencoder.PixelArray

gives the byte values of the bitmap of the barcode.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #7 (permalink)  
Old 02-25-2011, 10:08 AM
Newbie
 
Join Date: Feb 2011
Location: Mumbai, India
Posts: 7
Send a message via Skype™ to thecrowkaka
Default

Thanks agraham
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Barcode generation Lib Mr_Gee Additional Libraries 4 03-24-2011 12:59 PM
QuickMark 1D/2D barcode reader library agraham Additional Libraries 11 01-25-2011 07:41 AM
Porting library for QR barcode (dimensional) bluedude Questions (Windows Mobile) 12 03-22-2009 11:05 PM
Wav file tone generation library. agraham Additional Libraries 2 11-12-2008 07:56 AM
Barcode scanners Erel Additional Libraries 2 12-14-2007 07:46 PM


All times are GMT. The time now is 06:48 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0