[Request] Importing images source code using purely C++
-
wrote on 7 Oct 2011, 03:48 last edited by
Hi im rather new to C++ programming, i would like to request some help with importing images using ONLY C++ for my game, if possible can someone help me make a quick source code or a provide a link to a step by step tutorial for importing images.
Much obliged for any help provided =)
-
wrote on 7 Oct 2011, 05:55 last edited by
Well, your question is not very clear... What do you mean by "import image"?
What is the internal representation of your image? What is the format of the "source image"?As long as you don't give enough information nobody can answer, can't they?
As far as I know there are several classes in Qt that are dealing with images.
-
wrote on 7 Oct 2011, 06:19 last edited by
well i mean to create a custom item in QT to be used as a sprite for a game and this custom item is going to have a base png image to be used for a character for example. The format of the image is going to be png.
-
wrote on 7 Oct 2011, 08:01 last edited by
You might want to read into the Qt Resource System. That can be used to store files inside the binary.
-
wrote on 7 Oct 2011, 12:27 last edited by
Hi,
Check about QGraphicsPixmapItem and QPixmap classes, it should be a good begin!
4/5