Im a young beginner programmer, c++ was my first language. Ive partly read a couple books yet so far i dont know how to get an image (jpeg or gif) to the screen. I guess i need to know that first before making games!
Ok here is the 40,000 foot view. After you take some time to investigate and try some of them then you can have more specific questions
*First you must know the format of the file .jpg, .gif etc., so you can read the file from disk into memory and access it's various components.
*Next you must know how to create a Device Independent Bitmap (DIB) of the contents of the image file.
*Next you use the assortment of GDI API's <BitBlt()> or DirectX API's to transfer the bits of the DIB onto the device in the manner that suits you. This of course includes various transformation techniques using masks etc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.