Were VB6 to have masks, then the purpose would be the same as in any graphics environment - a technique to conceal or alter parts of an image for aesthetic purposes, to remove unwanted sections, or to reshape it. It includes two types: bitmasking, which hides pixels based on their color values, and alpha masking, which conceals pixels based on their opacity.
VBs various built-in graphics primitives do not include any sort of masking. The image control, however, does; it supports bitmasking, and allows you to define which colour in an image will be transparent. But that's about all the control you have.
This isn't to say you can't do more complex bitmasking or alpha masking in VB - but to do so you have to work with GDI or GDI+ APIs (GDI doesn't support alpha masking at all). Some of the GDI+ API is encapsulated in the Windows Image Acquisition library, but to use the rest you need a tool library (which I believe I have previously pointed you to) as VB6 cannot work with GDI+ directly
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.