alpha

Convert an image to an iPhone toolbar icon

I have a grayscale icon that I'm editing with Photoshop with a transparent background, but I can't, for the life of me, figure out how to convert the icon to one that can be used as an iPhone toolbar icon. If I simply save the image as a PNG, it doesn't show up as anti-aliased on the iPhone because every pixel with color is being rendere...

How do I convert a hexidecimal color (with alpha) to an int in Jython?

Hi, I need to convert an ARGB hex into an int in Jython for color. I've tried using longs, hex() and a combination of other things and can't seem to get it to work. I get this error "TypeError : 5th arg can't be coerced to int" when I try to convert 0x80ff3333 to an int. I guess there are too many bytes in the hex to convert it. Anyon...

alpha mask dll help(should be easy)

im a hobbyist game programmer, i mostly excel at ruby. ive been trying to write a dll in c#(though i dont care what lang its in) that allows me to create an alpha mask. all i really need is the one method eg: public Bitmap make_image(Bitmap image, Bitmap mask) { //code here return new_bitmap } if you are wondering why dont i just do it...

How can I force a UILabel to cover the background of its parent UIView?

I'm having a problem I most definitely don't understand. I have the following subclass of UIView: @implementation TimelineSystemEventView - (id)initWithFrame:(CGRect)frame { if ((self = [super initWithFrame:frame])) { CGRect newFr = CGRectMake(-30, 0, 60, 25); label = [[UILabel alloc] initWithFrame:newFr]; [self addS...

Developing using pre-release dev tools

We're developing a web site. One of the development tools we're using has an alpha release available of its next version which includes a number of features which we really want to use (ie they'd save us from having to implement thousands of lines to do pretty much exactly the same thing anyway). I've done some initial evaluations on it...

Is it okay these days to use PNG with alpha-transparency in websites?

I remember from 3 years ago that it was an absolutely huge pain to use any nice PNG with alpha in websites, because of IE6 and other bad browsers. But how about now? How about if your target audience are iPhone, iPad and iPod Touch users? I believe these people aren't so stupid to use old-aged bad browsers. They use the newest, best stu...

UITableView background with alpha color causing problem with UITableViewCell

Hi everybody, I'm trying to get a semi-transparent uitableview, with this color [UIColor colorWithRed:(247.0/255.) green:(151.0/255.0) blue:(121.0/255.0) alpha:0.38]; It's ok if there are only empty cells, but when a cell has content inside, the background turns more solid. It's as if the cell itself had the same table background, so ...

How do I create a transparent bitmap with Direct2D?

I am trying to create a PNG bitmap with RGB+A info. I want to draw a rectangle on the bitmap that is semi transparent (In other words, R=255, G=255, B=255 A = 128). I am using managed code so either SlimDX or the codepack API. The most straight forward route appears to be using the codepack api and WIC so I created a WIC bitmap with: ...

How to make MapView object transparent (alpha)?

All, I have a need to display information on a MapView object. No problems there. The issue is that there are times when the MapView object displays map details that visually compete with my overlay data. So, what I'd like to do is provide a way to "scale back" the MapView object visually by using an alpha channel. bold*Can an alpha...

OpenGL ES for iPhone blending not working

Hello, I'm a beginner to 3D graphics in general and I'm trying to make a 3D game for the iPhone, and more specifically, to use textures that contain transparency. I am able to load a texture (an 8 bit .png file) into OpenGL and map it to a square (made from a triangle strip) but the transparent parts of the image are not transparent when...