Alpha blending is a convex combination of a translucent foreground color with a background color allowing for transparency effects.
Questions tagged [alphablending]
562 questions
0
votes
2 answers
AlphaBlend not working on XP but on Vista and Windows 7, 8
I am using AlphaBlend. Nothing special at all.
My code is working fine on Vista, Windows 7 and Windows 8, but not on Windows XP.
Usually AlphaBlend returns 1, but on XP it returns 0.
I tested it on 2 XP computers.
I am totally…

tmighty
- 10,734
- 21
- 104
- 218
0
votes
1 answer
Displaying controls on an alpha-blended form
I tried the Visual C# Kicks code for an alpha-blended form. This works (as soon as I remove the TransparencyKey property); that is, I can use the W3C's PNG alpha test image and see other windows underneath, but makes all controls on the form…

Sören Kuklau
- 19,454
- 7
- 52
- 86
0
votes
1 answer
LayeredWindows and variable alpha translucency - using a Brush?
I have a layered window (using SetLayeredWindowAttributes). If I set the alpha on the whole window to 128 and draw black rectangles on it, it works as expected (black rectangles that show through at about 50% opacity).
If, however, I set the aplha…

Dave
- 1,521
- 17
- 31
0
votes
1 answer
What blend equation is System.Drawing.SolidBrush using?
I have some GDI code that's drawing semi-transparent triangles using System.Drawing.SolidBrush. I'm trying to reimplement the code using a proper 3D rendering API (OpenGL/Direct3D11), but I'm not sure what blend equation to use for these triangles…

postgoodism
- 948
- 9
- 14
0
votes
1 answer
Color.FromNonPremultiplied different tinting with BlendState.NonPremultiplied
In my XNA project I use non-processed images and draw them with BlendState.NonPremultiplied so they look normal around the edges. But when I use non-white color (Color.FromNonPremultiplied(12, 34, 56, 78)) in SpriteBatch.Draw method, it doesn't tint…

user1306322
- 8,561
- 18
- 61
- 122
0
votes
1 answer
Combine (Blend) two images to a final image, but avoid current content
When layering multiple I have to combine them at least once with an "empty" image or background. But there is nothing like "empty". It's transparent black oder transparent white. Even being completely transparent has a color which is normally…

Steffen Binas
- 1,463
- 20
- 30
0
votes
1 answer
How can I achieve partially see-through effect in iOS?
Basically I want to put an image on an UIView,and than cover this image with an semitransparent view to make the image blurring, eventually put an UIButton on the semitransparent view, now I want the image shows up clearly only in the button's…

Li Fumin
- 1,383
- 2
- 15
- 31
0
votes
2 answers
blend overlapping triangles in opengl
I'm building a thick line from triangles. The problem i'm having is that when the curve is semi transparent and some triangles overlap i get the effect in the picture. I would like for the triangles alphas to not get added.
I'm using this blend…

andrés
- 412
- 6
- 14
0
votes
1 answer
How do I create an alphablending BufferedImage using J2ME (CDC/PP 1.1)
I have a BufferedImage created using
new BufferedImage(wid,hgt,BufferedImage.TYPE_INT_ARGB);
to which I assemble a wallpaper using multiple other images. It works fine in Jave SE, but when I tried to run the code on a J9 CDC/PP platform I…

Lawrence Dol
- 63,018
- 25
- 139
- 189
0
votes
0 answers
Java LWJGL Changing a texture's alpha value
Can I use code in LWJGL to change a texture's alpha value? or render a texture with a certain alpha value without creating a couple images of the texture with different alpha values?
EDIT:
Figured it out, you change to color of the quad you are…

MxR
- 150
- 3
- 10
0
votes
1 answer
Color Blending vs Alpha Blending
While experimenting with the XNA BlendState class, I found that it has two state groupings:
One for Alpha Blending and one for Color Blending (as the framework calls it).
The mutable members of each group are termed *BlendFunction,…

Griffin
- 2,399
- 7
- 48
- 83
0
votes
0 answers
OpenGL alpha blending sometimes creating black quads
I'm trying to make simple shading for a 2D OpenGL scene by placing semi-transparent black quads over the scene, but in certain places instead of darkening the scene it completely blacks it out. I'm using glBlendFunc(GL_DST_COLOR, GL_SRC_ALPHA) for…
0
votes
1 answer
android opengl es drawarray with alpha
I like to draw a rectangle with the OpenGL ES 1.0 function "drawArray" and over this rectangele I want to draw a texture with alpha. (A Hud element and the drawArray rectangle shows the "fill state" of that element).
Basically it works but the…

Bruno Bieri
- 9,724
- 11
- 63
- 92
0
votes
1 answer
OpenGL to DirectX translation - alpha blending
I'm trying to translate an OpenGL renderer into DirectX9. It mostly seems to work, but the two don't seem to agree on the settings for alpha blending. In OpenGL, I'm…

Darrel Hoffman
- 4,436
- 6
- 29
- 41
0
votes
1 answer
OpenGL multi texture masking
I fallowed @Stefan Monov tutorial in this question. And everything works, but I need to make it working with my brush. I need to do so:
// Next, we want a blendfunc that doesn't change the color of any pixels,
// but rather replaces the framebuffer…

hockeyman
- 1,141
- 6
- 27
- 57