1. Writing text to a bitmap file
- Posted by csaik <chris.saik at comcast.net> Nov 22, 2005
- 509 views
- Last edited Nov 23, 2005
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.
2. Re: Writing text to a bitmap file
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Nov 22, 2005
- 492 views
- Last edited Nov 23, 2005
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. I'm not sure about your second question, but as to the first, no; there is a difference. What is a flat file? Later, Jeremy Peterson Life is real, games are for fun.
3. Re: Writing text to a bitmap file
- Posted by csaik <chris.saik at comcast.net> Nov 22, 2005
- 504 views
- Last edited Nov 23, 2005
A flat file is simply an old mainframe term for a regular text file.
4. Re: Writing text to a bitmap file
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Nov 22, 2005
- 499 views
- Last edited Nov 23, 2005
csaik wrote: > > A flat file is simply an old mainframe term for a regular text file. Oh, you used to use Unix? What OS did it have? HP-UX, AIX, BSD? If you look on wotsit.com, there is lots of info on file formats. Should be something about bitmaps too. Later, Jeremy Peterson Life is real, games are for fun.
5. Re: Writing text to a bitmap file
- Posted by Chris Burch <chriscrylex at aol.com> Nov 22, 2005
- 490 views
- Last edited Nov 23, 2005
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
6. Re: Writing text to a bitmap file
- Posted by Patrick Barnes <mrtrick at gmail.com> Nov 22, 2005
- 497 views
- Last edited Nov 23, 2005
So you have an image, and you want some text to appear on the image? It's *very* different to dealing with a flat file. I would say - Open the bitmap, and load it into a pixmap. Write the text at the chosen location on the pixmap. Save the pixmap as a bitmap file. On 11/23/05, csaik <guest at rapideuphoria.com> 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? -- MrTrick ----------
7. Re: Writing text to a bitmap file
- Posted by csaik <chris.saik at comcast.net> Nov 23, 2005
- 515 views
Thank you to everyone who replied. I will look into your suggestions.