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
4
votes
2 answers

Semi-Transparent TextureViews not working

I cannot change the transparency of a TextureView by setAlpha method to maske it semi-transparent as it is promised by the android SDK. For example mTextureView.setAlpha(0.5f) does not have any effect.
feisal
  • 585
  • 1
  • 8
  • 20
4
votes
5 answers

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…
JCHASE11
  • 3,901
  • 19
  • 69
  • 132
4
votes
4 answers

How to scale a Graphics2D image with transparent padding

I'm trying to write a small method which takes a BufferedImage image and a new width and height and scales the image keeping the aspect ratio by adding transparent border to the left/right or top/bottom depending on the image. The scaling works…
Gray
  • 115,027
  • 24
  • 293
  • 354
4
votes
1 answer

JTextArea not selectable, but still showing a "ghost" cursor

I put a JTextArea in a JPanel. This JPanel has a picture on the background, and the JTextArea is translucent (translucid red) to show the background through. I don't want the user to be able to edit or select the text, I want it to act just as a…
Rodrigo
  • 4,706
  • 6
  • 51
  • 94
4
votes
2 answers

Ico format - 32bit PNG vs 32bit BMP vs 24bit BMP

I'm releasing a .NET program, and am in the polishing up stage. I need to set the icon in the project properties. From my research, I would like to create images in the following pixel sizes to cater to all icon sizes: 16, 32, 48, 96, 256. I have…
Dan W
  • 3,520
  • 7
  • 42
  • 69
3
votes
2 answers

Saving a one color bitmap with alpha channel in Windows Forms saves a different (wrong) color

In C#, .NET 2.0, Windows Forms, Visual Studio Express 2010, I'm saving an image made of the same color: Bitmap bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb); using (Graphics graphics = Graphics.FromImage(bitmap)) { …
TechAurelian
  • 5,561
  • 5
  • 50
  • 65
3
votes
1 answer

How to create child layered alpha-transparent window?

I am trying to create transparent child window. procedure TForm1.BtnGoClick(Sender: TObject); var bmp:TBitmap; BitmapPos: TPoint; BitmapSize: TSIZE; BlendFunction: _BLENDFUNCTION; exStyle: Cardinal; begin bmp := TBitmap.Create; …
Astronavigator
  • 2,021
  • 2
  • 24
  • 45
3
votes
2 answers

openCV: adding transparency to IplImage

I have a 3-channel IplImage. I would like to create a 4-channel image and set the alpha channel for it to a value less than 1.0 to make it semi-transparent. First I set the alpha channel (the 4-th channel) to 0.5: cvSet(Image_c4,…
RawMean
  • 8,374
  • 6
  • 55
  • 82
3
votes
4 answers

How to detect a browser that dosen't render .png transparency

I have this code that render's a image acording to the day of the week. But in IE6 and lower and probably some other browsers it won't render png opacity. So I want to change it a litle so that it will detect the browser's that don't render alpha…
3
votes
1 answer

HTML5 transparent video with the greatest cross-browser/system support

I'm encountering an issue getting videos with alpha transparency to reliably load and play on a web page. After some thorough research, this is where I ended up as a means of video encoding to accomplish transparent video which isn't over a solid…
Will Ashworth
  • 1,058
  • 3
  • 13
  • 28
3
votes
1 answer

How to make a semi-transparent background image on xamarin

I have to opacify (make semi-transparent) the background image with a colored veil, I tried adding a frame but I don't get the desired effect`
user16937336
3
votes
1 answer

Transparent PNG (24) issue in IE8 and below using jQuery Cycle

I'm using jQuery cycle to fade my slideshow in / out. My slides have a background, and their are semi-transparent PNG's (using tag) within my slides. While the slide is fading in, the semi-transparent areas have black splotches. These splotches…
Mark26855
  • 87
  • 1
  • 1
  • 8
3
votes
2 answers

How i can remove the black background on my sprite sheet in pygame

I'm trying to learn how use sprite sheets on pygame , and on my first try my sprite for some reason have a black background , i don't know how i can fix this problem , i alredy put 000 on the color key but when i do this the sprite be all…
Juw
  • 43
  • 6
3
votes
1 answer

per-pixel transparent window using Windows Composition engine in C++

I want to display a raw BGRA data (so I have an unsigned int *, with width and height) on a window so that the alpha component is taken into account to have per-pixel transparency. The final purpose is to integrate this in a graphic toolkit. after…
3
votes
0 answers

Semi-transparent background in a PyQt5 window (IT IS NOT A DUPLICATE)

I need to put a semi-transparent background to a PyQt5 window (by semi-transparent I mean it is possible to see what is behind it.). What I saw in many other subjects is that the idea is to use a rgba color. For example putting something like this…
daveturner
  • 188
  • 1
  • 9