Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.24 KB

image-information-in-image-lists.md

File metadata and controls

19 lines (14 loc) · 1.24 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Image Information in Image Lists
Image Information in Image Lists
11/04/2016
CImageList class [MFC], image information in
image lists [MFC], image information in
73c41543-fa91-405d-b15b-0feffa6a72c1

Image Information in Image Lists

CImageList 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