xtd 0.2.0
Loading...
Searching...
No Matches

◆ icon() [2/11]

xtd::drawing::icon::icon ( const xtd::string filename,
const xtd::drawing::size size 
)

Initializes a new instance of the xtd::drawing::icon class of the specified size from the specified file.

Parameters
filenameThe file to load the xtd::drawing::icon from.
sizeThe desired size of the icon.
Remarks
If the specified file does not contain an image that matches the desired size, the icon that has the closest size is returned.
The filename should include the complete path if it is not in the current application directory.