alpha

Can PNG image transparency be preserved when using PHP's GDlib imagecopyresampled?

The following PHP code snippet uses GD to resize a browser-uploaded PNG to 128x128. It works great, except that the transparent areas in the original image are being replaced with a solid color- black in my case. Even though imagesavealpha is set, something isn't quite right. What's the best way to preserve the transparency in the res...

How to use 32bit alpha-blended BMP in .Net

Hi, Is there any way to use this kind of format in .Net (C#)? I want to use the same skin format that uTorrent uses in my app, but i can't get the transparent background. Any ideas? Thanks for your time. ...

Does the VFW (Video For Windows) API support Alpha Channel Transparency?

Does the VFW (Video For Windows) API support Alpha Channel Transparency? I want to be able to export video with Alpha channel information. How can I do this in VC6? ...

How do I draw transparent DirectX content in a transparent window?

I want to draw DirectX content so that it appears to be floating over top of the desktop and any other applications that are running. I also need to be able to make the directx content semi-transparent, so other things show through. Is there a way of doing this? I am using Managed DX with C#. ...

What is the formula for alpha blending for a number of pixels?

I have a number of RGBA pixels, each of them has an alpha component. So I have a list of pixels: (p0 p1 p2 p3 p4 ... pn) where p_0_ is the front pixel and p_n_ is the farthest (at the back). The last (or any) pixel is not necessary opaque, so the resulting blended pixel can be somehow transparent also. I'm blending from the beginning o...

Set BufferedImage alpha mask in Java

I have two BufferedImages I loaded in from pngs. The first contains an image, the second an alpha mask for the image. I want to create a combined image from the two, by applying the alpha mask. My google-fu fails me. I know how to load/save the images, I just need the bit where I go from two BufferedImages to one BufferedImage with the...

Alpha Software v 9

I am not a 'programmer' but want to develop a database application using Alpha Software Platinum v 9. The app would allow users to list classified ads via a web site and browse for items being sold etc. Does anyone have experience with Alpha software and is it really as easy they state on their site? Again, I am not a programmer but t...

How do you draw transparent polygons with Python?

I'm using PIL (Python Imaging Library). I'd like to draw transparent polygons. It seems that specifying a fill color that includes alpha level does not work. Are their workarounds? If it can't be done using PIL I'm willing to use something else. If there is more than one solution, then performance should be factored in. The drawing...

Simple transparency example not working in Java 3D

Hi all, I'm a complete n00b in j3d (but an expert in Java). Just starting out, I'm running into a problem playing with transparency. I've got a simple example which draws a rotating planar quad (disappears when showing the back face because I haven't disabled backface culling). With the Color3b and COLOR_3 lines uncommented (and the co...

UITableView background image alpha problems

I have a UIView with a UITableView for a subview. The UIView has an image applied to its background via setBackGroundColor, and I have applied a background to the UITableView in the same manner. Both images are PNGs, and the the background for the UITableView has levels of transparency in it that don't appear to be working -- the PNG s...

Non-working alpha in Flash Player 6 [Given Up On]

I've got a flash project that due to requirements has to be backward compatible with flash 6. Everything works, except the first 6 (of 17) jpeg images that are loaded by <MovieClip>.loadMovie don't respond to changes to their alpha setting. If I rearrange the order of the images in the XML file that is used to provide the image urls to ...

"Screen" effect in Java 2D graphics

This is a question that's been bugging me for some time now: In photoshop/GIMP, there is a "screen" layer composition mode. This mode has bright colours have a strong alpha, and dark colours a weak one. Black is entirely transparent, white entirely opaque. I would dearly love to be able to replicate this composite using Java 2D graphic...

Transparent top-level windows

I would like to create a top-level (i.e., not WS_CHILD) window with transparency. However, I don't want it to be a simple mask, where a given pixel is either fully transparent or fully opaque. And I don't want it to be such that the entire window has some alpha level to it. Rather, I'd want the window to essentially be entirely transp...

i want to capture a string through regex only when it contains any alphabetic characters?

example strings 785*()&!~`a ##$%$~2343 455frt&*&* i want to capture the first and the third but not the second since it doesnt contain any alphabet character plz help ...

Inscriber Technology Via Builder and Delphi - Alpha Channel support

Hi there, I'm working with Via Builder, from Inscriber Technology. This app merges a TGA sequence animation into one single .via file, making it much better to load large sequences, as this file is optimized. There are plugins to use this with some Adobe products. I'm working on Delphi, and my problem is that I can't get back the origi...

Looking for MsPaint alternative with alpha support

In our codebase I write many things that, for testing, depends on the image Im loading have alpha. Usually, I make all my own testimages/programmers-art in MsPaint. But every time I need an image with alpha, I have to go and disturb one of our artists. (Or start the loading of GIMP and go for a coffee break.) So Im looking for alternati...

How to programmatically detect if a bitmap has alpha channel ?

As subject. Preferibly using C code. Thanks, ...

Using layered windows to create smooth window borders

We are developing a skinned app with various rounded edges on most of its windows. I am using window regions to define non-rectangular shapes, but nearly everyone objects to the jagged aliasing this causes, because pixels can only be either fully opaque or fully transparent. I've come up with a solution to this using layered windows, b...

Capturing EAGLview content WITH alpha channel on iPhone

Hello, have been struggling with this issue for quite some time now and couldn't find an answer so far. Basically, what I want to do, is capturing the content of my EAGLview and then use it to merge it with other images. Anyway, the mainproblem is, that everything transparent in my EAGLview renders opaque when saving it to the photoalbu...

How to remove black background from textures in OpenGL

Hi, I'm looking for a way to remove the background of a 24bit bitmap, while keeping the main image totally opaque, up until now blending has served the purpose but now I need to keep the main bit opaque. I've searched on Google but found nothing helpful, I think I'm probably searching for the wrong terms though, so any help would be gre...