Questions tagged [alpha-transparency]

The alpha transparency of an image defines how transparent the pixels of this image are. Typically, each pixel has an alpha value between 0 (fully transparent) and 255 (fully opaque).

Alpha transparency is an attribute of pixels within an image (or image layer) which determines how transparent the pixel is, by blending the pixel color with the color of the pixel in the layer beneath it. most image editing software allow to edit a layer or image alpha transparency. The alpha value is saved in addition to the RGB value of the pixel. Ranges of transparency may change according to the software setup.

Alpha Transparency as part of Alpha Compositing.

468 questions
0
votes
0 answers

GDI+ Compose bitmap with transparency

I'd like to rewrite this method by using Graphics.DrawImage(). No matter the PixelFormat of bitmapToDrawOn and bitmapDrawn values (I tried all combinations) which should be typically PixelFormat.Format32bppRgb and PixelFormat.Format32bppArgb (or…
Patrick from NDepend team
  • 13,237
  • 6
  • 61
  • 92
0
votes
1 answer

textures with transparent background by using alpha blending opengl

I have scar textures and I want to get rid of the background skin colour by using alpha blending. However, I have problems with changing the opacity of individual pixels of specific textures. What is the easiest way to have textures with transparent…
0
votes
1 answer

C# image pixel format of alpha only

What exactly does System.Drawing.Imaging.PixelFormat.Alpha represent anyone? Look like this is similar to OpenGL.GL_APHA which is depreciated. I am trying to convert a line of Java code that looks like this: TextureData textureData = new…
Klaus Nji
  • 18,107
  • 29
  • 105
  • 185
0
votes
1 answer

AS3 Make a Movieclip vanish when left alone for a certain duration

Original Edit I am wanting to know the best method for a making a movieClip fade way on the stage. I can guess how to do it in as2 (that's what I was taught in) but I'm unsure how to to develop my code below. As a guess I would assume to attach it…
0
votes
4 answers

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!
mager
  • 4,813
  • 8
  • 29
  • 30
0
votes
1 answer

flash / Actionscript - .alpha property not always working

I'm fixing someone else's code and everything is done is actionscript 3.0 on Flash CS5. Here is the actionscript: var buttons = ["suspend", "dissolve"]; // there are two buttons on the screen. One says 'Suspend' and the other says 'dissolve'. //…
user2817200
  • 1,097
  • 2
  • 18
  • 38
0
votes
1 answer

android switch gradually between two colored texts

I have a vertical seek bar and two textviews. One textview is transparent and the other textview is set right on top of the other one. When dragging the thumb of the seek bar the transparent textview comes into view and the other textview turns…
0
votes
3 answers

Crop transparent PNG image with my own coords with python and PIL

Now my code write PNG, but I can't open it - errors of file. Without crooping all works, but I need crop png file. With my coords (no PIL box), and transparent images. Image.open(imagefile) #image = image.crop(crop_coords) #only work without…
0
votes
1 answer

Android: video playback with alpha channel?

In iOS I can to play videos with an alpha channel using http://www.modejong.com/AVAnimator How should I approach this on Android? Thanks...
cal
  • 470
  • 1
  • 7
  • 27
0
votes
0 answers

IOS set transparent border of path of cgcontext

I have added a bezier path to my context as follows for (Face* face in facesArray) { UIBezierPath* customPath = [UIBezierPath bezierPath]; [customPath moveToPoint:face.rightEyePosition]; [customPath…
0
votes
1 answer

PHP GD only: PNG24+Alpha => PNG8 does not save Alpha

Please do not post code which you have not actually tested! I have spent some time looking for this answer. There are several similar posts here on StackOverflow, but nothing I have found can produce this seemingly simple result. pngquant is very…
unidentified-1
  • 131
  • 1
  • 7
0
votes
1 answer

Billboard Transparency in XNA for Windows Phone

Okay so hopefully a simple fix that I'm just not seeing: I'm trying to implement transparency on a Billboard for an explosion, however the sprite stays solid where there is a pixel not defined transparent in the png file itself. I'm trying to change…
TotalJargon
  • 147
  • 2
  • 2
  • 14
0
votes
1 answer

AlphaComposite.CLEAR not working

I have two JPanels on a JLayeredpane. One of them displays a pdf and the overlapping one has a transparent background (I have used setOpaque(false)). Now I can add drawings to the transparent panel such that it seems I'm actually annotating the pdf.…
Gohio
  • 5
  • 3
0
votes
0 answers

How to use a complex OpenGL as background in QGraphicsScene?

I'm trying to create a display with a complex OpenGL image and some spinboxes on the image. Using http://doc.qt.digia.com/qq/qq26-openglcanvas.html I'm able to have a two layers object (inheriting from QGraphicsScene) with a simple OpenGL image as…
user1235648
0
votes
2 answers

Java Invert Image Alpha

I have a situation where I need to invert the alpha channel of a VolatileImage My current implementation is the obvious, but very slow; public BufferedImage invertImage(VolatileImage v) { BufferedImage b = new BufferedImage(v.getWidth(),…
lynks
  • 5,599
  • 6
  • 23
  • 42