tags:

views:

41

answers:

2

I am finding a way to draw image with per pixel alpha using UIView on iphone, any one have tried that?

+3  A: 

This is possible. I'm assuming you are using a UIImageView to display the image? Just make sure that the background colour of your view is set to clear and that Opaque is set to false.

skorulis
thanks, I will try that :)
SearchDream
+1  A: 

Yes.

You can back an UIView with an RGBA bitmap of the same size where every pixel has it's own 8 bits of alpha channel.

Unless you specify otherwise (by scaling or using a transform, etc.), a generic UIView uses a CALayer backed by such a bitmap.

hotpaw2
Thanks, it works as your method :)
SearchDream