|
|
|||||||||
| TALtech Home: Resources: Introduction to Bar Coding |
|
A bar code is comparable to a printed version of the Morse code. Instead of dots and dashes to represent characters, bar codes use the widths of black bars and white spaces. It is extremely important that the widths of the bars and spaces are printed within precise tolerances in order to be readable by most bar code readers. How the bar code is produced including the type of graphic that is originally used is therefore extremely important. Microsoft Windows supports three native graphic types that are commonly used to create bar codes: bitmaps, fonts and metafiles. BitMapsA bitmap is an array of dots or "pixels" where each
pixel (picture element) has
a value that represents the color of the pixel. The width of a bitmap
is defined by the
number of pixels across a row. The height of the bitmap is defined
by the number of rows
of pixels. Any graphic that is made up of rows of dots is called
a "Raster"
graphic therefore a bitmap is a raster graphic. The overall printed
dimensions of a bitmap
are dependent on the dot resolution of the device used to print it.
For example if you
create a bitmap graphic that is 300 pixels wide and has 300 rows
of pixels and then you
print this bitmap on a printer that has a dot resolution of 300 dots
per inch, you will
end up with a printed image one inch square. If you display the same
bitmap on a computer
screen that has a dot resolution of 100 dots per inch, you end up
with an image that is
three inches square. This means that bitmaps are "device dependent" where
the
resolution of the rendering device (e.g. printer or screen) must
be taken into
consideration when you create the image. If you need to preserve
the size of an image from
one device to another (e.g. screen to printer) you must "stretch" or
"shrink" a bitmap to fit the desired size. The process
of stretching and
shrinking involves either adding or removing pixels to or from the
original image. As you
can imagine resizing a bitmap to a desired size when moving from
one output device to
another generally causes a severe degradation of the original image
quality. Therefore,
when creating precise graphics (like bar codes) it is extremely important
that the image
is created with the same dot resolution of the printer. If you do
not know the dot
resolution of the printer that will be used to print the bar code
then you cannot fully
guarantee that the image will be readable by all bar code readers. FontsAlthough fonts are not normally thought of as graphics, they can be used
to produce bar codes. A font is a collection of graphic elements that
are assigned to each of the characters in the ASCII or ANSI character
set. Because most bar code symbologies encode data by mapping specific
characters to specific bar and space patterns, it is possible to use fonts
to create bar codes. Unfortunately, fonts have many inherent problems
when they are used to create bar codes. "Bar code fonts have been known to create EAN/UPC symbols with serious quality defects. The problems may be caused by the inherent design of the font, operator input, or a combination of both..." Uniform Code Council, Inc., Guidelines for Providers of EAN/UPC Symbol Design Software, 1997, Page 13. "For these reasons, extreme caution should be used when producing EAN/UPC symbols with bar code fonts. They should only be used by highly experienced bar code design professionals utilizing appropriate controls" This is true when using fonts to create any bar code symbology. MetafilesThe absolute best way to create bar codes is to use a vector style
graphic. Instead of containing an actual raster style image (like a bitmap), a vector
graphic contains a sequence of drawing instructions that describe how to render the image.
For example it might contain an instruction that tells the output device to move to a
point exactly two inches down and to the right from the upper left corner of the screen or
page and draw solid black rectangle that is exactly a quarter of an inch wide and one inch
tall. B-Coder Pro and B-Coder LiteTALtech's B-Coder bar code graphic generating software can create bar codes in ANY graphic format - including Windows Metafile (.WMF), EPS, TIFF, bitmap, GIF, JPEG, AI, PCT, PCX, etc... However for the reasons given above we recommend that you use one of the vector formats (WMF or EPS) if possible. Windows Applications- Word, Access,
PageMaker, WordPerfect, Quark, etc. MACIf you are going to be printing from a MAC we recommend you use the EPS graphic format in B-Coder. This allows all EPS options including selectable TIFF preview for the EPS. InternetIf you are going to be showing the bar codes on web pages then you will want to use the GIF or JPEG options, however the quality of these bar codes will be much lower as GIFs and JPEGs are raster graphics. The other graphic formats supported by B-Coder (bitmap, TIFF, PCT, PCX, TGA, CTM, WPG, DRW, etc.) are provided for special situations or for specific applications that have limited graphic support. They are all raster graphics so they should only be used if you have no other choice.
|
||||||||||||||||