TPNGImage help

TPNGImage

Components > TPNGObject > Methods > LoadFromFile


Loads the image from a file.

procedure
LoadFromFile(const Filename: String);

Description

LoadFromFile method will load the filename into the current png object. It's recommended to use try except end operators to handle the different errors that might happen.