PDA

View Full Version : How to create mask image


mohan
09-01-2003, 08:44 PM
Hai Antun,

How do i create mask(transparent) image using lzx.
i.e in our application we want to put an image on the mobile phone so that the image which is going to put on the cellphone should be croped (mask) to the real scale (size) of the cellphone. Also when i moving the image or resize the image may should be confined to the mask area of the cellphone.

I hope you may understand my question,


Thanks,

Rudresh and Mallesh

antun
09-01-2003, 10:13 PM
The only way I can think of for creating a mask is to use a shape of the image you want to mask the picture onto.

For example, you could have a background image, the shape of a cellphone, where the cellphone shape is cut out of the center. Then if you wanted to put a photo on that cellphone, you would place that in a view behind the view with the cellphone.

If you know what shape you want transparent ahead of time, you could save it as a gif/jpg/swf with transparency built into it.

-Antun