[SOLVED]Bitmaps libraries and documents

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
melgmry0101b
Member
Member
Posts: 109
Joined: Wed Nov 10, 2010 10:49 am

[SOLVED]Bitmaps libraries and documents

Post 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
Last edited by melgmry0101b on Thu Feb 10, 2011 5:16 am, edited 1 time in total.
Tosi
Member
Member
Posts: 255
Joined: Tue Jun 15, 2010 9:27 am
Location: Flyover State, United States
Contact:

Re: Bitmaps libraries and documents

Post 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.
User avatar
Combuster
Member
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

Post by Combuster »

Look out for the graphics programming black book. Complete with sample code and explanations.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
melgmry0101b
Member
Member
Posts: 109
Joined: Wed Nov 10, 2010 10:49 am

Re: Bitmaps libraries and documents

Post 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.
melgmry0101b
Member
Member
Posts: 109
Joined: Wed Nov 10, 2010 10:49 am

Re: Bitmaps libraries and documents

Post 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.
StephanvanSchaik
Member
Member
Posts: 127
Joined: Sat Sep 29, 2007 5:43 pm
Location: Amsterdam, The Netherlands

Re: Bitmaps libraries and documents

Post by StephanvanSchaik »

Hi,

I think this might be of use for you: http://www.brackeen.com/vga/


Regards,
Stephan J.R. van Schaik.
melgmry0101b
Member
Member
Posts: 109
Joined: Wed Nov 10, 2010 10:49 am

Re: Bitmaps libraries and documents

Post by melgmry0101b »

Thank you Stephan J.R. van Schaik.
but i saw this link before.
it uses a dos functions.
melgmry0101b
Member
Member
Posts: 109
Joined: Wed Nov 10, 2010 10:49 am

Re: Bitmaps libraries and documents

Post by melgmry0101b »

Thank you very much berkus.
melgmry0101b
Member
Member
Posts: 109
Joined: Wed Nov 10, 2010 10:49 am

Re: Bitmaps libraries and documents

Post 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
Tosi
Member
Member
Posts: 255
Joined: Tue Jun 15, 2010 9:27 am
Location: Flyover State, United States
Contact:

Re: Bitmaps libraries and documents

Post 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.
User avatar
Combuster
Member
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

Post 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?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
melgmry0101b
Member
Member
Posts: 109
Joined: Wed Nov 10, 2010 10:49 am

Re: Bitmaps libraries and documents

Post by melgmry0101b »

I spent a day searching about it , i didn't find any useful information
User avatar
Combuster
Member
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

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
melgmry0101b
Member
Member
Posts: 109
Joined: Wed Nov 10, 2010 10:49 am

Re: [SOLVED]Bitmaps libraries and documents

Post by melgmry0101b »

Thank you very much for all your replies
chibicitiberiu
Member
Member
Posts: 68
Joined: Thu May 28, 2009 11:46 pm

Re: [SOLVED]Bitmaps libraries and documents

Post 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...
Tibi,
Currently working on the Lux Operating System
Post Reply