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

◆ icon() [3/11]

xtd::drawing::icon::icon ( const xtd::string filename,
int32  width,
int32  height 
)

Initializes a new instance of the xtd::drawing::icon class with the specified width and height from the specified file.

Parameters
filenameThe file to load the xtd::drawing::icon from.
widthThe desired width of the xtd::drawing::icon.
heightThe desired height of the xtd::drawing::icon.
Remarks
If the specified file does not contain an image that matches the desired height and width, 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.