1. Writing text to a bitmap file

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.

new topic     » topic index » view message » categorize

2. Re: Writing text to a bitmap file

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.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Writing text to a bitmap file

A flat file is simply an old mainframe term for a regular text file.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Writing text to a bitmap file

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.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Writing text to a bitmap file

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: Writing text to a bitmap file

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
----------

new topic     » goto parent     » topic index » view message » categorize

7. Re: Writing text to a bitmap file

Thank you to everyone who replied.  I will look into your suggestions.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu