alpha-transparency

Problem with SDL_DisplayFormatAlpha (c++)

As I stated in this question, I am using SDL for a small game I'm developing. Now I am having problems with SDL_DisplayFormatAlpha. I am trying to create a surface with an alpha channel from a PNG image. It was working before, but now that I've done some slight refactoring something got broken. I've narrowed it down to this construct...

Convert TrueType Font (or JPG image) to PNG image with Alpha Transparency in .NET?

Anyone know how to convert either a TrueType Font or JPG image into a PNG image with Alpha Transparency in .NET? I basically want to create a script-looking signature image that has a transparent background so that I can programmatically add that png signature into PDF documents after they've been created. I can do this with a normal J...

alpha transparency solution in IE

I am building a website with a TON of png-24 files that have transparent background. In IE 6 they obviously aren't displayed correctly, so I need some sort of reliable, good solution that will fix the PNG problem in IE and require little work and be reliable. Any good ideas? ...

What is the best way to save a PNG image with alpha transparency for IE6?

I am trying to save a 1 or 8-bit PNG image that looks nice in IE6. Do you have any suggestions? I have used Fireworks before, and that works pretty well, but I'm looking for other options. Thanks! ...

Replace transparency in PNG images with white background

I've got some PNG images with transparency, and I need to create versions with the image layer composed onto a white background. I've tried various things with Image Magick "convert" operations, but either nothing happens at all or I get an error. I don't want to go to an intermediate JPG form because I don't want the artifacts. Of co...

PyGTK StatusIcon with transparency

Hi, I'm trying to create a PyGTK StatusIcon with transparent background. I need to draw the contents of the StatusIcon at runtime. StatusIcon wants a Pixbuf object (which can have transparency). No problem with that: pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, True, 8, width, height) pixbuf.fill(0xffffffff) The problem is, I can...

CSS opacity and child elements

<style type="text/css"> div#foo { background: #0000ff; width: 200px; height: 200px; opacity: 0.30; filter: alpha(opacity = 30); } div#foo>div { color: black; opacity:1; filter: alpha(opacity = 100); } </style> <div id="foo"> <div>Lorem</div> <div>ipsum</div> <div>dolor</div> </div> In the a...

Calculate resulting RGB from 2 colors, one is transparent

I'm looking for a formula to convert them. I know to convert a general transparency it is alpha * new + ( 1 - alpha ) * old I have: Color A : RGB( 85, 113, 135 ) Color B : RGB( 43, 169, 225 ) Color A has 90% opacity and is laid on top of Color B, resulting in Color C : RGB( 65, 119, 145 ) My question is, how does it get Color C...

internet explorer: semi-transparent images

Hi there, I have the two images below. They are the same image, with one having a slight glow effect on the text. They are setup as below: <div id="header"><a></a></div> withe the original image being the background for the div, and the 'glow' image being the background for the anchor tag, with display:block; width: 100%; height: 100...

Is there a free tool for rendering a webpage to a PNG with a transparent background?

Say I have a very simple html page, containing a single line of text. I'm looking for a tool that would take that line of text, and superimpose it on a transparent PNG background. That logic would be applied to ALL elements on the page: if no background is specified, and the background of parent elements doesn't leak through, then a back...

Ruby: Find non-transparent PNG and convert into JPG

What is the smartest way to find out if a PNG has transparency or not in Ruby? Is it OK if I just check if there's an alpha-channel? If yes: How do I check for an alpha-channel? I'm writing a script that will convert all PNGs without transparency into smaller JPGs. Thanks a lot for your help! ...

Can I use icons with RGBA transparency when using GTK+ drag and drop?

Hi, I am in the process of adding drag and drop support to an existing Mono/C#/GTK# application. I was wondering whether it was possible to use RGBA transparency on the icons that appear under the mouse pointer when I start dragging an object. So far, I realized the following: I can set the bitmap in question by calling the Gtk.Drag.S...

Transparency in a movieclip in Flash works in SWF, doesn't when compiled to iPhone with Packager.

I'm making an iPhone game in Flash and i added a little splash screen where the game name fades in from black then fades out to the menu screen. The whole animation is in its own movieclip, just 2 transitions where the alpha changes. When built to a SWF file this plays perfectly, but on the iPhone it doesn't. Even more strange; the iPho...