Decomposing a B&W bitmap graphic (or ideally, a font bitmap)
Decomposing a B&W bitmap graphic (or ideally, a font bitmap)
- Subject: Decomposing a B&W bitmap graphic (or ideally, a font bitmap)
- From: email@hidden
- Date: Tue, 26 Mar 2002 01:53:34 EST
I have the not so enviable task of decomposing a set of font faces into text
files for downloading into a specialty-task printer. Bear with me on this
explanation of my need for help. I need to be able to take either a
black-and-white bitmapped file (tif, bmp, etc) and convert the whole thing
into a text file, with the pound symbol (#) representing a black pixel and a
period (.) representing a white pixel, and return representing the end of the
row of pixels.
Or, in an ideal world, I'd be able to parse a bitmapped font face directly
into this text format.
While I have the where-withall to create the text file, to write the text,
etc., I need some pointers on data structures and accessing the data
structures of either tif, bmp or font bitmap files so I can suck them in and
digest them to generate the results I need. Does anyone either:
(a) have a reference for the file specifications for any of those formats; or
(b) can recommend a good printed ref that would give me the information; or
(c) know of some premade solution (or a graphics/font app that is scriptable
to query pixel by pixel); or
(d) know of a scripting addition that would let me get at the data within any
of those file types pixel by pixel?
In general, machine time is cheap enough that it doesn't have to be a pretty
solution, just an effective one.
Any comments or help would be greatly appreciated.
=-= Marc Glasgow
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.