Search code examples
imagedelphipngdelphi-7

Delphi 7, load PNG to TImage


Just want to load a .PNG, tried with my LoadPic() using OleGraphic that works with other formats, but it failed on PNG.

The goal is to copy the image to a hidden bitmap whence it is then masked and copied to a visible working image canvas. Feel free to suggest something else if CopyRect doesn't do this.

But the main question: Load PNG. How? I've found a lot of pages (f.ex. TPNGImage), but all the resources and links on the web are dead, gone or not downloadable.


Solution

  • I will use GraphicEx from Soft Gems for now. Thanks for helpful answers!