Image Gadget
BlitzPlus Forums/BlitzPlus Programming/Image Gadget
| ||
Hi, I need to add a small GUI start-up window for my series of games.. games that run in their own window or full-screen (after Graphics() command) , so I don't need any canvas. But I'd like to add an image to the GUI window, so I was wondering if someone was able to set up an image-gadget using Win32 API calls directly, it's silly to create a canvas to show just one image. Thanks in advance for any hints. |
| ||
Do you mean a splash image that appears on the desktop? how I did it was (in simplified meta code) 1) copy the desktopbuffer to a spare gfx buffer 2) display the splash image (standard image) 3) copy the spare gfx buffer to the desktopbuffer |
| ||
Thank you, but I meant a simple image to show in a window. I know I can create a canvas and use DrawImage() to print the image inside, but Windows provides an image gadget type (that B+ doesn't support natively). To use a canvas simply to display an image is a waste of resources in my case. |
| ||
Man, I see where your coming from! Another idea for you: Graphics 200,200,32,2 setbuffer backbuffer() drawimage image,0,0 flip WaitKey graphics 640,480,32,0 gamecode.... does this sort it out? |