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

Just starting out? Need help? Post your questions and find answers here.
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

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

Post 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.
GBeebe
Enthusiast
Enthusiast
Posts: 263
Joined: Sat Oct 09, 2004 6:52 pm
Location: Franklin, PA - USA
Contact:

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

Post 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.
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

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

Post by jassing »

Awesome; thank you!
Post Reply