public static Icon ExtractNearestIcon(
this Icon icon,
Size size,
PixelFormat pixelFormat
)<ExtensionAttribute>
Public Shared Function ExtractNearestIcon (
icon As Icon,
size As Size,
pixelFormat As PixelFormat
) As Iconpublic:
[ExtensionAttribute]
static Icon^ ExtractNearestIcon(
Icon^ icon,
Size size,
PixelFormat pixelFormat
)[<ExtensionAttribute>]
static member ExtractNearestIcon :
icon : Icon *
size : Size *
pixelFormat : PixelFormat -> Icon The result Icon is compatible with Windows XP if the method is executed in a Windows XP environment.
On some platforms it may happen that a smaller icon is returned than requested size if the requested icon size is not supported. If icon contains only unsupported icon sizes, then is returned.
To force a result exactly with the specified size, use the Resize method instead.