Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can someone please explain the concept of masking ( as it relates to image list creation) to me?
Posted
Comments
Gbenbam 5-Feb-14 11:28am    
You may want to see the associated question I asked about it here:

http://www.codeproject.com/Questions/720959/Is-there-a-negetive-effect-to-creating-an-image_li
Sergey Alexandrovich Kryukov 5-Feb-14 11:31am    
This is a very broad concept used everywhere in programming. You probably need to ask more specific question.
Explain what do you want to achieve...
—SA
enhzflep 5-Feb-14 11:34am    
With 32bit images, you have 8bits each for Red, Green, Blue & Alpha.
With masking, you use an image without alpha information. You use the first image to provide the colour information and the second to provide (1bit - i.e transparent or opaque) alpha information.

ImageLists are used by some of the native win32 controls. Examples include the tree-view and list-view controls. If you provide an image without a mask or an alpha channel, all colour information is displayed, resulting in a square/rectangular picture. By using a mask, you could display a circular potion of an icon, by masking-off the corners.

1 solution

The MSDN overview explains it fairly well: About Image Lists[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900