IconExtensions Class

KGy SOFT Drawing Libraries Help
Contains extension methods for the Icon type.
Inheritance Hierarchy

SystemObject
  KGySoft.DrawingIconExtensions

Namespace:  KGySoft.Drawing
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 4.7.0
Syntax

public static class IconExtensions

The IconExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCombine(Icon, Bitmap)
Combines an Icon instance with the provided images into a multi-resolution Icon instance.
Public methodStatic memberCombine(Icon, Icon)
Combines an Icon instance with the provided icons into a multi-resolution Icon instance.
Public methodStatic memberCombine(Icon, Boolean, Bitmap)
Combines an Icon instance with the provided images into a multi-resolution Icon instance.
Public methodStatic memberCombine(Icon, Boolean, Icon)
Combines an Icon instance with the provided icons into a multi-resolution Icon instance.
Public methodStatic memberCombine(Icon, Bitmap, Color)
Combines an Icon instance with the provided image into a multi-resolution Icon instance.
Public methodStatic memberCombine(Icon, Bitmap, Color, Boolean)
Combines an Icon instance with the provided image into a multi-resolution Icon instance.
Public methodStatic memberExtractBitmap(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 methodStatic memberExtractBitmap(Icon, Size, Boolean)
Extracts the first image of specified size from an Icon instance.
Public methodStatic memberExtractBitmap(Icon, Int32, Boolean)
Extracts the image of specified index from an Icon instance.
Public methodStatic memberExtractBitmap(Icon, Size, PixelFormat, Boolean)
Extracts the image of specified size and pixel format from an Icon instance.
Public methodStatic memberExtractBitmaps(Icon, Boolean)
Extracts every image from an Icon instance.
Public methodStatic memberExtractBitmaps(Icon, PixelFormat, Boolean)
Extracts every image of specified pixel format from an Icon instance.
Public methodStatic memberExtractBitmaps(Icon, Size, Boolean)
Extracts every image of specified size from an Icon instance.
Public methodStatic memberExtractIcon(Icon, Size)
Extracts the first icon of specified size from an Icon instance. Unless the Icon constructors, this method works as expected.
Public methodStatic memberExtractIcon(Icon, Int32)
Extracts the icon of specified index from an Icon instance.
Public methodStatic memberExtractIcon(Icon, Size, Boolean)
Extracts the first icon of specified size from an Icon instance. Unless the Icon constructors, this method works as expected.
Public methodStatic memberExtractIcon(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 methodStatic memberExtractIcon(Icon, Int32, Boolean)
Extracts the icon of specified index from an Icon instance.
Public methodStatic memberExtractIcon(Icon, Size, PixelFormat, Boolean)
Extracts the icon of specified size and pixel format from an Icon instance. Unless the Icon constructors, this method works as expected.
Public methodStatic memberExtractIcons(Icon)
Extracts every icon from an Icon instance as separated instances.
Public methodStatic memberExtractIcons(Icon, Boolean)
Extracts every icon from an Icon instance as separated instances.
Public methodStatic memberExtractIcons(Icon, PixelFormat)
Extracts every icon of specified pixel format from an Icon instance as separated instances.
Public methodStatic memberExtractIcons(Icon, Size)
Extracts every icon of specified size from an Icon instance as separated instances.
Public methodStatic memberExtractIcons(Icon, PixelFormat, Boolean)
Extracts every icon of specified pixel format from an Icon instance as separated instances.
Public methodStatic memberExtractIcons(Icon, Size, Boolean)
Extracts every icon of specified size from an Icon instance as separated instances.
Public methodStatic memberExtractNearestBitmap
Extracts the nearest image of specified size and pixel format from an Icon instance.
Public methodStatic memberExtractNearestIcon(Icon, Size, PixelFormat)
Extracts the nearest icon of specified size and pixel format from an Icon instance. Unless the Icon constructors, this method works as expected.
Public methodStatic memberExtractNearestIcon(Icon, Size, PixelFormat, Boolean)
Extracts the nearest icon of specified size and pixel format from an Icon instance. Unless the Icon constructors, this method works as expected.
Public methodStatic memberGetBitsPerPixel
Gets the bits per pixel (bpp) value of the icon.
Public methodStatic memberGetImagesCount
Gets the number of images in the icon.
Public methodStatic memberIsCompressed
Determines whether the icon or its image at the specified index is compressed.
Public methodStatic memberSaveHighQuality
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 methodStatic memberToAlphaBitmap
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 methodStatic memberToCursorHandle
Converts the provided icon to a CursorHandle, which can be passed to the System.Windows.Forms.Cursor constructor to create a new cursor.
Public methodStatic memberToMultiResBitmap(Icon)
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.
Public methodStatic memberToMultiResBitmap(Icon, Boolean)
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.
Public methodStatic memberToUncompressedIcon
Converts the icon to an uncompressed one.
Top
See Also

Reference