CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2012
    Posts
    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...................

  2. #2
    Join Date
    May 2012
    Location
    Bonn, Germany
    Posts
    43

    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.

  3. #3
    Join Date
    Jan 2009
    Posts
    1,689

    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
  •  





Click Here to Expand Forum to Full Width

Featured