is there a tutorial for loading a bitmap

Started by
5 comments, last by Drew_Benton 18 years, 10 months ago
Is there a tutorial for loading a bitmap without using a load of code and sdl or opengl or anything like that just something simple like load bitmap "bitmap.bmp" its just that i have a picture that i would just like to view dont want to move it or anything fancy just want to get it on screen thanx please help
Advertisement
I'm afraid it isn't that easy. You can't view a bitmap in console mode, you need to build a window and use some sort of Graphics API to accomplish that.
-----------------------------Play Stompy's Revenge! Now!
so i have to make a window first then i can load the bitmap
Once again, use SDL or Allegro, it is much easier than using Windows API.
-----------------------------Play Stompy's Revenge! Now!
Quote:Original post by cNoob
so i have to make a window first then i can load the bitmap


Yes. What language are you using on what platform? If you don't use something like SDL or OpenGL, all you are left with is Win32 GDI, DirectX, and other libraries such as Allegro. You will have to use one of those graphics libraries if you want graphics to draw a BMP.
which one do you think is the best and easiest for loading bitmaps
and how do i get it
If all you want to do is display a BMP, use SDL. Here is a tutorial for doing that as well. For setting it up, look here. It doesn't get much easier than that really.

This topic is closed to new replies.

Advertisement