[SOLVED]Bitmaps libraries and documents
-
- Member
- Posts: 109
- Joined: Wed Nov 10, 2010 10:49 am
[SOLVED]Bitmaps libraries and documents
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
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
Last edited by melgmry0101b on Thu Feb 10, 2011 5:16 am, edited 1 time in total.
-
- Member
- Posts: 255
- Joined: Tue Jun 15, 2010 9:27 am
- Location: Flyover State, United States
- Contact:
Re: Bitmaps libraries and documents
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.
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.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Bitmaps libraries and documents
Look out for the graphics programming black book. Complete with sample code and explanations.
-
- Member
- Posts: 109
- Joined: Wed Nov 10, 2010 10:49 am
Re: Bitmaps libraries and documents
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.
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.
-
- Member
- Posts: 109
- Joined: Wed Nov 10, 2010 10:49 am
Re: Bitmaps libraries and documents
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.
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.
-
- Member
- Posts: 127
- Joined: Sat Sep 29, 2007 5:43 pm
- Location: Amsterdam, The Netherlands
Re: Bitmaps libraries and documents
Hi,
I think this might be of use for you: http://www.brackeen.com/vga/
Regards,
Stephan J.R. van Schaik.
I think this might be of use for you: http://www.brackeen.com/vga/
Regards,
Stephan J.R. van Schaik.
-
- Member
- Posts: 109
- Joined: Wed Nov 10, 2010 10:49 am
Re: Bitmaps libraries and documents
Thank you Stephan J.R. van Schaik.
but i saw this link before.
it uses a dos functions.
but i saw this link before.
it uses a dos functions.
-
- Member
- Posts: 109
- Joined: Wed Nov 10, 2010 10:49 am
Re: Bitmaps libraries and documents
Thank you very much berkus.
-
- Member
- Posts: 109
- Joined: Wed Nov 10, 2010 10:49 am
Re: Bitmaps libraries and documents
Hi,
I drew a non-filled triangle.
Please , Can any one tell me how to draw a filled one?
---------------------------------
Thank you a lot
I drew a non-filled triangle.
Please , Can any one tell me how to draw a filled one?
---------------------------------
Thank you a lot
-
- Member
- Posts: 255
- Joined: Tue Jun 15, 2010 9:27 am
- Location: Flyover State, United States
- Contact:
Re: Bitmaps libraries and documents
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.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Bitmaps libraries and documents
Can any one tell me how to draw a filled one?
Do you mind doing your research first?Combuster wrote:Look out for the graphics programming black book. Complete with sample code and explanations.
-
- Member
- Posts: 109
- Joined: Wed Nov 10, 2010 10:49 am
Re: Bitmaps libraries and documents
I spent a day searching about it , i didn't find any useful information
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Bitmaps libraries and documents
-
- Member
- Posts: 109
- Joined: Wed Nov 10, 2010 10:49 am
Re: [SOLVED]Bitmaps libraries and documents
Thank you very much for all your replies
-
- Member
- Posts: 68
- Joined: Thu May 28, 2009 11:46 pm
Re: [SOLVED]Bitmaps libraries and documents
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...
Tibi,
Currently working on the Lux Operating System
Currently working on the Lux Operating System