concept mask in category ios

appears as: masks, A mask, mask
iPhone in Action: Introduction to Web and SDK Development

This is an excerpt from Manning's book iPhone in Action: Introduction to Web and SDK Development.

A mask is a black-and-white shape that you use to show only part of an image. In a mask, alpha values of 0 show nothing; alpha values of 1 display the image content. In other words, it’s a way to clip an image.

This is the case with two interesting new graphical features that were announced in April 2008: gradients and masks. We have faith that both of these new CSS properties will soon be available in Safari and on the iPhone, but as of this writing they’re not yet available. Therefore, we’re just going to cover them in passing, with no guarantees that the properties will be quite the same when they actually appear.