Icon.Icon
Icon(string)
Initializes a new instance of the Icon
class from the specified file name.
public Icon(string fileName)
Parameter | Type | Description |
---|---|---|
fileName | String | The file to load the Icon from. |
See Also
- class Icon
- namespace System.Drawing
- assembly Aspose.Drawing
Icon(Stream)
Initializes a new instance of the Icon
class from the specified data stream.
public Icon(Stream stream)
Parameter | Type | Description |
---|---|---|
stream | Stream | The data stream from which to load the Icon. |
See Also
- class Icon
- namespace System.Drawing
- assembly Aspose.Drawing
Icon(string, Size)
Initializes a new instance of the Icon
class of the specified size from the specified file.
public Icon(string fileName, Size size)
Parameter | Type | Description |
---|---|---|
fileName | String | The name and path to the file that contains the icon data. |
size | Size | The desired size of the icon. |
See Also
- struct Size
- class Icon
- namespace System.Drawing
- assembly Aspose.Drawing
Icon(Icon, Size)
Initializes a new instance of the Icon
class and attempts to find a version of the icon that matches the requested size.
public Icon(Icon original, Size size)
Parameter | Type | Description |
---|---|---|
original | Icon | The Icon from which to load the newly sized icon. |
size | Size | A Size structure that specifies the height and width of the new Icon. |
See Also
- struct Size
- class Icon
- namespace System.Drawing
- assembly Aspose.Drawing
Icon(Type, string)
Initializes a new instance of the Icon
class from a resource in the specified assembly.
public Icon(Type type, string resource)
Parameter | Type | Description |
---|---|---|
type | Type | A Type that specifies the assembly in which to look for the resource. |
resource | String | The resource name to load. |
See Also
- class Icon
- namespace System.Drawing
- assembly Aspose.Drawing
Icon(Stream, Size)
Initializes a new instance of the Icon
class of the specified size from the specified stream.
public Icon(Stream stream, Size size)
Parameter | Type | Description |
---|---|---|
stream | Stream | The stream that contains the icon data. |
size | Size | The desired size of the icon. |
See Also
- struct Size
- class Icon
- namespace System.Drawing
- assembly Aspose.Drawing
Icon(string, int, int)
Initializes a new instance of the Icon
class with the specified width and height from the specified file.
public Icon(string fileName, int width, int height)
Parameter | Type | Description |
---|---|---|
fileName | String | The name and path to the file that contains the Icon data. |
width | Int32 | The desired width of the Icon. |
height | Int32 | The desired height of the Icon. |
See Also
- class Icon
- namespace System.Drawing
- assembly Aspose.Drawing
Icon(Icon, int, int)
Initializes a new instance of the Icon
class and attempts to find a version of the icon that matches the requested size..
public Icon(Icon original, int width, int height)
Parameter | Type | Description |
---|---|---|
original | Icon | The icon to load the different size from. |
width | Int32 | The width of the new icon. |
height | Int32 | The height of the new icon. |
See Also
- class Icon
- namespace System.Drawing
- assembly Aspose.Drawing
Icon(Stream, int, int)
Initializes a new instance of the Icon
class from the specified data stream and with the specified width and height.
public Icon(Stream stream, int width, int height)
Parameter | Type | Description |
---|---|---|
stream | Stream | The data stream from which to load the icon. |
width | Int32 | The width, in pixels, of the icon. |
height | Int32 | The height, in pixels, of the icon. |
See Also
- class Icon
- namespace System.Drawing
- assembly Aspose.Drawing