IconExtensions Methods

KGy SOFT Drawing Libraries

IconExtensions Methods KGy SOFT Drawing Libraries Help

The IconExtensions type exposes the following members.

Methods

  Name Description
Public method Static member Combine(Icon, Bitmap)
Combines an Icon instance with the provided images into a multi-resolution Icon instance.
Public method Static member Combine(Icon, Icon)
Combines an Icon instance with the provided icons into a multi-resolution Icon instance.
Public method Static member Combine(Icon, Bitmap, Color)
Combines an Icon instance with the provided image into a multi-resolution Icon instance.
Public method Static member ExtractBitmap(Icon, Boolean)
Extracts the first image from an Icon instance. If the icon has only one image consider to use ToAlphaBitmap, which is faster.
Public method Static member ExtractBitmap(Icon, Size, Boolean)
Extracts the first image of specified size from an Icon instance.
Public method Static member ExtractBitmap(Icon, Int32, Boolean)
Extracts the image of specified index from an Icon instance.
Public method Static member ExtractBitmap(Icon, Size, PixelFormat, Boolean)
Extracts the image of specified size and pixel format from an Icon instance.
Public method Static member ExtractBitmaps(Icon, Boolean)
Extracts every image from an Icon instance.
Public method Static member ExtractBitmaps(Icon, PixelFormat, Boolean)
Extracts every image of specified pixel format from an Icon instance.
Public method Static member ExtractBitmaps(Icon, Size, Boolean)
Extracts every image of specified size from an Icon instance.
Public method Static member ExtractIcon(Icon, Size)
Extracts the first icon of specified size from an Icon instance. Unless the Icon constructors, this method works as expected.
Public method Static member ExtractIcon(Icon, Int32)
Extracts the icon of specified index from an Icon instance.
Public method Static member ExtractIcon(Icon, Size, PixelFormat)
Extracts the icon of specified size and pixel format from an Icon instance. Unless the Icon constructors, this method works as expected.
Public method Static member ExtractIcons(Icon)
Extracts every icon from an Icon instance as separated instances.
Public method Static member ExtractIcons(Icon, PixelFormat)
Extracts every icon of specified pixel format from an Icon instance as separated instances.
Public method Static member ExtractIcons(Icon, Size)
Extracts every icon of specified size from an Icon instance as separated instances.
Public method Static member ExtractNearestBitmap
Extracts the nearest image of specified size and pixel format from an Icon instance.
Public method Static member ExtractNearestIcon
Extracts the nearest icon of specified size and pixel format from an Icon instance. Unless the Icon constructors, this method works as expected.
Public method Static member GetImagesCount
Gets the number of images in the icon.
Public method Static member SaveHighQuality
Saves the icon into the specified stream. Unlike Icon.Save, this method can save every icon with high quality, even SystemIcons members, and icons created by the Icon.FromHandle method.
Public method Static member ToAlphaBitmap
Converts the specified icon to a Bitmap. While Icon.ToBitmap may return a wrong result when icon contains semi-transparent pixels, this method returns an image, in which alpha channel is always correctly applied for the image.
Public method Static member ToCursorHandle
Converts the provided icon to a CursorHandle, which can be passed to the System.Windows.Forms.Cursor constructor to create a new cursor.
Public method Static member ToMultiResBitmap
Converts the icon to a Bitmap instance, which contains every image of the icon. When the returned Bitmap is used to create another Bitmap or is drawn into a Graphics, the best-fitting image is automatically applied.
Top
See Also

Reference