alpha

What browsers support Alpha channel in colors?

Since I'm always sticking to CSS 2, it was a (pleasant) surprise for me today to find out that CSS 3 supports alpha channels in colors. That allows for a nice range of effects. But - which browsers (and from what version) support this? Is it safe to use this today, or are we better off by still making a 1x1px png image and adding the IE6...

Flash / Actionscript: How to make overlapping sprite invisible

See image at http://reggino.kingsquare.nl/tmp/actionscriptProblem.jpg Hi there, I can't get my head around this one... I'm having two sprites, where the intersection of these sprites has an alpha of 0. I tried all the blendmodes and filters, but none of them seems appropriate. I've been puzzeling with extra layers on top of these thr...

How to design a Wolfram Alpha-like search engine?

I want to build a search engine that is similar to Wolfram Alpha. I want to insert a query and receive a response from a dedicated database, or multiple databases for multiple responses. Up until this point I know HTML + CSS, but I am mostly focused on design. I want to expand my skill set and create a web application like this but on a ...

Overlapping partially transparent shapes

If I draw any shape onto a surface (with SRCALPHA flag on) in a partially transparent colour it completely replaces what was underneath it, instead of overlapping like you would expect in image editors. How can I make the shapes overlap properly? ...

circular colorTransform

Is there a way to apply a colorTransform to a BitmapData in a circle rather than in a rectangle? Instead of erasing rectangular parts of an image by reducing the alpha channel as in the code below, I'd like to do it in circles. _bitmap.colorTransform(new Rectangle(mouseX-d/2, mouseY-d/2, d, d), new ColorTransform(1, 1, 1, .5, 0, 0, 0...

reverse colortransform alpha AS3

I'm fading out a Bitmap in AS3 by repeatedly applying a ColorTransform every frame to its BitmapData; _bitmap.colorTransform(_bitmap.rect, new ColorTransform(1, 1, 1, .9, 0, 0, 0, 1)); When applying the apparent reverse to fade it back in I get a discoloured image. _bitmap.colorTransform(_bitmap.rect, new ColorTransform(1, 1, 1, 1.1...

How to save an image as Tiff or PNG with an alpha channel or alpha mask in iPhone SDK?

I have an image with something inside in a white backround. I want to save that image in a format that allows alpha channel or using an alpha mask in a way that the white pixels became transparents. Any light out there? ...

Set "opacity" of a CGLayer before draw?

I have UIView subclass - actually a puzzle piece - with 2 different CGLayer initialized at initWithFrame. In drawRect I have to blend this two layer, and the uppermost should have variable alpha depending on game-logic. What is the best (most performance optimized) way to do this? Is there any CGLayer, or CGContext function that sets s...

Alpha blending a red, blue, and green image to produce an image tinted to any rgb value?

Basically, I have a context where I can't programatically tint an image, though I can change it's alpha value. With some experimentation, I've found that I can layer a red, blue, and green version of the image, with specific alpha values, to produce a wide range of colors. However, I am wondering if it's possible to achieve a true RGB ...

working with PNGs in vb.net

I have PNG and need to know if it has an alpha (or if the alpha is completely white)? How can I accomplish this in vb.net code. ...

Flex: Create custom stroke on LineSeries?

You can easily set a stroke on a line series like this: <mx:LineSeries yField="apple"> <mx:lineStroke> <mx:Stroke color="0x6699FF" weight="4" alpha=".8" /> </mx:lineStroke> </mx:LineSeries> This will set alpha for the entire stroke to .8 But I want...

Alpha masks with OpenGL

I want to use an alpha mask in OpenGL so that white(1)=visible and black(0)=hidden. So what I do is I write something in the alpha component of the framebuffer using glColorMask(False, False, False, True) (I'm using python, you see) and then draw some geometry above it using blending. But it isn't working: I tried filling the alpha buf...

What is the formula for extracting the src from a calculated blendmode?

How does one go about using a alpha blending formula to achieve the src rgb color from the resultant of the 2 blended together ...

Creating UIImage with per-pixel alpha from GL buffer

Hi, I'm trying to take my gl buffer and turn it into a UIImage while retaining the per-pixel alpha within that gl buffer. It doesn't seem to work, as the result I'm getting is the buffer w/o alpha. Can anyone help? I feel like I must be missing a few key steps somewhere. I would really love any advice on this. Basically I do: //Rea...

OpenGL-ES variable texture alpha (2D)?

I have a texture with transparency (the white triangle with that lighting information), and just can't make it's alpha variable. The drawing code, with the missing piece: //Place polygon vertices to the bottom left within the view. glLoadIdentity(); glTranslatef(centerX, centerY, 0); //Draw "diffuse" layer. glBindTexture(G...

Flash: combine two BitmapData objects via max( channel )

I have two BitmapData objects with alpha channels. I'd like to combine them into a single one by using max(channel_image_one, channel_image_two) for each channel, including the alpha. Is there an easy way to achieve this result? ...

How to make a System.Drawing.Image semitransparent?

System.Drawing.Graphics.DrawImage pastes one image on another. But I couldn't find a transparency option. I have already drawn everything I want in the image, I only want to make it translucent (alpha-transparency) ...

How to change the alpha value of the first table in grouped table in iphone?

I am new to iphone development. I am displaying my content in grouped table view. I want to change the alpha value of the first group of my table only. How can i achieve that. Please help me out. Thanks. ...

java images with alpha channel without using buffered image

im drawing a bunch of tiles on a Canvas, these tiles are represented by either Images or BufferedImages. i noticed that im getting millisecond draws with Images but what i start using BufferedImages for the tiles the frame time sky rockets to above 20ms. BufferedImage buffered = ImageIO.read(new File(fileName)); Image image = Toolkit.g...

Diffrent values of alpha for different regions of a sprite(Flex/Actionscript)

Here is my problem : I have a Sprite covering the entire screen. Other than a certain rectangle of this sprite I want the rest of the sprite to have alpha = 0.5. And for that particular rectangle, I want alpha = 0. Is it possible? How? ...