how to display an image?

closed account (LAfSLyTq)
ok im making a game and idk how to display a .png image on the screen.
http://dl.dropbox.com/u/27086729/Capture.PNG
Last edited on
What library do you use for the graphics?
closed account (LAfSLyTq)
C++, SDL and SDK's are not permitted by my school. i would fail the course
Last edited on
closed account (LAfSLyTq)
help please.
how did you get the window to appear? what libraries are you using?
closed account (LAfSLyTq)
#include <windows.h>
#include <d2d1.h>
#pragma comment(lib, "d2d1")
#include "basewin.h"

please help!
closed account (LAfSLyTq)
please help.
closed account (LAfSLyTq)
bump
Oh...I think this should be in the windows programming section.
closed account (LAfSLyTq)
but this is for c++
closed account (LAfSLyTq)
this is a c++ game. how do i display an image or in other words, how do i display a character?
closed account (LAfSLyTq)
im just going to keep bumping until i get a response
closed account (LAfSLyTq)
bump bump bump
Some advice: Stick to the course requirements and forget the fancy graphics. Save that for later when you have time to spend on it.

Displaying a PNG is non-trivial unless you are using modern versions of Windows (Windows 7 or better), because you would have to use the libpng and zlib libraries and perform all the proper transformations to a BITMAP to a displayable HBITMAP yourself.

If undaunted, google around "Win32 API tutorial" and then "GDI tutorial".

Good luck!
Topic archived. No new replies allowed.