Partager via


Image Information in Image Lists

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Image Information in Image Lists.

CImageList](../Topic/CImageList%20Class.md) includes a number of functions that retrieve information from an image list. The GetImageInfo member function fills an IMAGEINFO structure with information about a single image, including the handles of the image and mask bitmaps, the number of color planes and bits per pixel, and the bounding rectangle of the image within the image bitmap. You can use this information to directly manipulate the bitmaps for the image.

The GetImageCount member function retrieves the number of images in an image list.

You can create an icon based on an image and mask in an image list by using the ExtractIcon member function. The function returns the handle of the new icon.

See Also

Using CImageList
Controls