Page 1 of 1

Can this be done: Overlay one image (bmp/ico) with another?

Posted: Mon Feb 07, 2011 4:58 am
by jassing
While displaying some images, the program needs to display the image with an indicator that the file is modified.

For instance -- a text file (.txt) might show notepad's icon -- but if the file is processed by the program, it needs to show the same icon with some sort of indication (red border or an "N" in the corner...

I was able to do this with ImageMagick, but wanted to see if anyone had code to do this in PureBasic w/o external dll's.

Re: Can this be done: Overlay one image (bmp/ico) with anoth

Posted: Mon Feb 07, 2011 6:37 am
by GBeebe
Assuming you're using your own "file browser" to display the images. You can use DrawImage() to place one image over another. Then use that as the "icon" of the file.

Re: Can this be done: Overlay one image (bmp/ico) with anoth

Posted: Mon Feb 07, 2011 9:43 pm
by jassing
Awesome; thank you!