Icon.Icon

Icon(string)

Initializes a new instance of the Icon class from the specified file name.

public Icon(string fileName)
ParameterTypeDescription
fileNameStringThe file to load the Icon from.

See Also


Icon(Stream)

Initializes a new instance of the Icon class from the specified data stream.

public Icon(Stream stream)
ParameterTypeDescription
streamStreamThe data stream from which to load the Icon.

See Also


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)
ParameterTypeDescription
fileNameStringThe name and path to the file that contains the icon data.
sizeSizeThe desired size of the icon.

See Also


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)
ParameterTypeDescription
originalIconThe Icon from which to load the newly sized icon.
sizeSizeA Size structure that specifies the height and width of the new Icon.

See Also


Icon(Type, string)

Initializes a new instance of the Icon class from a resource in the specified assembly.

public Icon(Type type, string resource)
ParameterTypeDescription
typeTypeA Type that specifies the assembly in which to look for the resource.
resourceStringThe resource name to load.

See Also


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)
ParameterTypeDescription
streamStreamThe stream that contains the icon data.
sizeSizeThe desired size of the icon.

See Also


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)
ParameterTypeDescription
fileNameStringThe name and path to the file that contains the Icon data.
widthInt32The desired width of the Icon.
heightInt32The desired height of the Icon.

See Also


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)
ParameterTypeDescription
originalIconThe icon to load the different size from.
widthInt32The width of the new icon.
heightInt32The height of the new icon.

See Also


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)
ParameterTypeDescription
streamStreamThe data stream from which to load the icon.
widthInt32The width, in pixels, of the icon.
heightInt32The height, in pixels, of the icon.

See Also