Page 1 of 1

BMP and font

Posted: Mon Jun 29, 2009 9:57 am
by izidor
First how to open bmp in QBasic?

Second how to use fonts?

Posted: Mon Jun 29, 2009 10:52 am
by burger2227
Open BMP files FOR BINARY. You have to get information from the bitmap header to find the BPP, offset, dimensions in the first 54 bytes.

The color settings and image are read with GET one byte at a time.

Use Paint and create bitmap fonts from Windows of 1 BPP (white on black background).

Posted: Mon Jun 29, 2009 1:58 pm
by izidor
Maybe example, please.

Posted: Mon Jun 29, 2009 3:18 pm
by burger2227
Look in the downloads section here.

Or look at www.QbasicStation.com

Look in member Files there. I have several BMP programs there.

Posted: Tue Jun 30, 2009 7:36 am
by izidor
Thanks for reply but do you know any font example.
Thanks

Izidor

font example

Posted: Tue Jun 30, 2009 8:43 am
by Kiyotewolf
To do fonts easily, dump an ascii table from a DOS window with the font set to what you want.

Then screen capture it, convert it to a BMP, then use the BMP decoding code to save the font data as bit patterns.

If you want to work with *.BMP's, I recommend only working with 24-bit BMP's.

There is a site that I know of that has all you need to work with *.BMP's.

]RUN SEARCH

]PRINT S;

http://www.mandelbrot-dazibao.com/Main/Main.htm

Lookie thar.. and you shall find.

My favorite fonts are 4x6, 8x8, and 8x16.



Kiyote!

Posted: Wed Jul 01, 2009 11:54 am
by izidor
Thanks!