Re: Writing text to a bitmap file
- Posted by Chris Burch <chriscrylex at aol.com> Nov 22, 2005
- 490 views
csaik wrote: > > When writing text to a bitmap file, it is the same process as if you were > writing > text to a regular flat file? > > Basically, I have a bitmap that is 600x400 pixels. If I wanted to write a > string > of text beginning at (30,50), how do I do this? > > Thanks for the help. Hi A file is a file is a file is a file, no matter what the oerating system, its the program that decides its type. In windows (and I'm not sure if there's a linux equivalent), you need to use one of the graphic libraries (freedib, gd, win32dib, look for bitmap in the archive) to load your bitmap into memory, use one of the functions to write to it (in memory), and then write it back out to disk. I can't remember the exact functions / procs to do this, but there in the docs. Chris http://members.aol.com/chriscrylex/euphoria.htm http://uboard.proboards32.com/ http://members.aol.com/chriscrylex/EUSQLite/eusql.html