Page 1 of 2
[SOLVED]Bitmaps libraries and documents
Posted: Tue Feb 01, 2011 9:09 am
by melgmry0101b
Hi everyone,
i moved to mode 13h and i printed pixels with a specific posistion
now i want to load bitmaps and print letters on the screen.
i have looked for documents but i didn't find a good one.
but i don't know how so that i want some help with some documents , please.
----------------------------------
Thank you in advance.
----------------------------------------------------
http://mohamedsalah96.web.officelive.com/default.aspx
Re: Bitmaps libraries and documents
Posted: Tue Feb 01, 2011 9:30 am
by Tosi
What kind of bitmap do you want to use?
Windows bitmaps are actually pretty easy to use, especially since they are rarely compressed. The only problem is that due to the lack of compression they can be huge if they have big dimensions. There is also the problem of copyright, since it is a proprietary format. I don't use it often so I don't know the exact copyright or patent information.
A few seconds of googling got me the bitmap reference directly from Microsoft themselves.
About Bitmaps
Bitmap Storage
Bitmaps are stored as a regular file, usually with an extension of .BMP. To display one, you would need to load it as a file, parse the headers, and then use that information to convert the bitmap bits to whatever display format your current graphics mode uses. Then just BLT that to the screen.
Re: Bitmaps libraries and documents
Posted: Tue Feb 01, 2011 1:41 pm
by Combuster
Look out for the graphics programming black book. Complete with sample code and explanations.
Re: Bitmaps libraries and documents
Posted: Tue Feb 01, 2011 3:49 pm
by melgmry0101b
Hi everyone,
Thank you for reply.
about the bitmap i want to load 256 colors bitmaps
about my skills in graphics i am a starter in graphics so that i try to find simple documents.
until now i drew rectangles and lines.
Re: Bitmaps libraries and documents
Posted: Wed Feb 02, 2011 6:26 am
by melgmry0101b
Hi everyone,
I have completed drawing lines and rectangles but i want to know how to draw circles
can any one tell me how?
----------------
Thank you in advance.
Re: Bitmaps libraries and documents
Posted: Wed Feb 02, 2011 6:29 am
by StephanvanSchaik
Hi,
I think this might be of use for you:
http://www.brackeen.com/vga/
Regards,
Stephan J.R. van Schaik.
Re: Bitmaps libraries and documents
Posted: Wed Feb 02, 2011 9:21 am
by melgmry0101b
Thank you Stephan J.R. van Schaik.
but i saw this link before.
it uses a dos functions.
Re: Bitmaps libraries and documents
Posted: Sat Feb 05, 2011 10:52 am
by melgmry0101b
Thank you very much berkus.
Re: Bitmaps libraries and documents
Posted: Sun Feb 06, 2011 4:50 am
by melgmry0101b
Hi,
I drew a non-filled triangle.
Please , Can any one tell me how to draw a filled one?
---------------------------------
Thank you a lot
Re: Bitmaps libraries and documents
Posted: Sun Feb 06, 2011 8:20 am
by Tosi
If you can draw a non-filled triangle, it shouldn't be much of a step to figure out how to draw a filled one.
Re: Bitmaps libraries and documents
Posted: Sun Feb 06, 2011 9:30 am
by Combuster
Can any one tell me how to draw a filled one?
Combuster wrote:Look out for the graphics programming black book. Complete with sample code and explanations.
Do you mind doing your research first?
Re: Bitmaps libraries and documents
Posted: Sun Feb 06, 2011 9:43 am
by melgmry0101b
I spent a day searching about it , i didn't find any useful information
Re: Bitmaps libraries and documents
Posted: Sun Feb 06, 2011 10:20 am
by Combuster
Proof that the person in question never bothered to search:
[1] and
[2]
Hundreds of people have (wrongly) said that they have searched before, I think we have some experience by now in knowing which claims are correct.
Re: [SOLVED]Bitmaps libraries and documents
Posted: Sat Sep 03, 2011 7:51 am
by melgmry0101b
Thank you very much for all your replies
Re: [SOLVED]Bitmaps libraries and documents
Posted: Sat Sep 03, 2011 11:36 am
by chibicitiberiu
Wikipedia is a very good resource, I used the article about .bmp and I created my own bitmap drawing function few years ago... when I was using turbo C 3.0 and launching any of my evil graphics programs would crash the computer...