-
May 25th, 2012, 03:48 AM
#1
steps to be followed for manualy loading and displaying a bmp file
i want to display a bmp file of resolution 600*420 (using c compiler like code block )
by manual loading
i tried to display the image by loading the pixel value. but this method has a limitation that it take up pixel value of image upto 64kb size.
so now i am trying to load it manually.
what are the steps that i has to follow, what are the header files that i has to use ?
my system specification are windows xp professional , intel pentium 4 cpu.
i don't know where to start ,does this method has any limitaton ,...etc
i am totally new to this please help...................
-
May 25th, 2012, 06:33 AM
#2
Re: steps to be followed for manualy loading and displaying a bmp file
In standard C you can't display any graphics without using something like X (Linux) or WinAPI (Windows).
Maybe you try SDL (google it), it's a multimedia library that will allow you to do what you want.
-
May 25th, 2012, 07:57 AM
#3
Re: steps to be followed for manualy loading and displaying a bmp file
What do you mean "loading it manually"? There is no limit in how large you can make a block, there is no such 64kb limit, you can malloc as much as you need. I've loaded and displayed bitmaps much larger than that. You might not be able to fit the whole thing on the graphics card, but OpenGL (and I assume any other useful graphics library) can compensate for that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|