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

How to make a QWidget alpha-transparent

I need to create an alpha transparent widget, it's basically a navigation bar with a shadow and the widgets below need to be partially visible through the shadow. The widget loads a PNG then draws it on the paint event. The problem is that the…
laurent
  • 88,262
  • 77
  • 290
  • 428
4
votes
4 answers

Generate mesh from one-color texture

I make a code to be able to draw and generate a sprite of this drawing. So I get a sprite with white background and my drawing (which is in a different color). My question : How could I remove the white background at runtime ?(with C# code) My…
AKIRK
  • 109
  • 1
  • 14
4
votes
1 answer

Scaling TImageList with PNG icons for high DPI mode

I want to make HeidiSQL high-dpi aware, which includes upscaling my one TImageList with lots of alpha-transparent PNG icons in it. I have baken a procedure which does it, but it breaks the normal transparency and also the alpha-transparency, so the…
Anse
  • 1,573
  • 12
  • 27
4
votes
1 answer

Matplotlib: How to prevent transparent color overlay when curve overlaps?

For example we plot a line with transparent color here import numpy as np import matplotlib.pyplot as plt a = np.array([1, 2, 3, 4, 5]) b = 2*a plt.plot(a, b, 'blue', alpha=0.3) plt.show() but wenn I plot the same line multiple times, that…
sun0727
  • 374
  • 4
  • 19
4
votes
3 answers

Setting alpha transparency at a listView android

Hi i would like to set some transparency to my listview , i've alredy see some examples of that , but all of than were a 100% transparent . as this topic : How to make the ListView transparent in android? As Jacky mentioned, setting attributes for…
user569873
  • 424
  • 5
  • 13
4
votes
1 answer

Transparent view background turns black

I want to make the view of a view controller semi-transparent. For that I have set the background color like this in the viewDidLoad method. view.backgroundColor = UIColor(white: 0, alpha: 0.5) When the view controller is presented, the background…
Isuru
  • 30,617
  • 60
  • 187
  • 303
4
votes
2 answers

Android - PNG image has alpha channel, but when in imageview white background is shown. How can I fix?

Problem: I have saved a png image into the @drawable folder in android studio. This image is confirmed to have an alpha channel. Image in android studio: When I add it to an image view in a relative layout the alpha channel is lost ImageView…
user2853442
  • 331
  • 5
  • 15
4
votes
2 answers

Semi-transparent colors in Google Charts?

A call like chart.draw(data, { colors: ['#e0440e', '#e6693e', '#ec8f6e', ...], ... }); creates a chart with colors looking like semi-transparent. However, we passed RGB colors, with no alpha parameter! In other chart apps (like jqPlot, CanvasJS…
4
votes
1 answer

PNGs losing transparency in Android (if all its pixels are not transparent)

I have an app with two views - one on top of another. On the top one I use a Bitmap (ARGB_8888) loaded from a PNG resource and I play with its alpha channel to make some parts of it disappear so the one below becomes visible. All works fine if the…
Piotr
  • 1,597
  • 3
  • 18
  • 25
4
votes
2 answers

Transparent Png to TBitmap32

I have a png that i would like to load in a TBitmap32. After I load the bitmap I call: Bitmap.DrawMode := dmTransparent; Bitmap.OuterColor := Bitmap.PixelS[0,0]; But then all white pixels are transparent. How can i do that just for the…
rouge
  • 437
  • 1
  • 7
  • 17
4
votes
1 answer

ImageMagick convert - Label text over alpha background

I'm trying to place a copyright message on a large batch of PNG images. I'd like to place the message in the bottom-right corner in black text on a semi-transparent white background. Here's my Windows command line script which loops through the…
4
votes
1 answer

Stop transparent UITableView section header from flashing when reloading

I am experiencing a weird visual glitch whereby reloading a section of my UITableView is causing the semitransparent header view (alpha=0.25) to flash briefly darker, as if it were adding another copy of the header view on top of the old one and…
devios1
  • 36,899
  • 45
  • 162
  • 260
4
votes
1 answer

THREE.js transparent plane cutting adjacent object texture

transcut http://glasier.hk/image/transcut.png Each face is made with this: geometry = new THREE.PlaneGeometry(w,h,1,1,1); base = new THREE.MeshBasicMaterial( { color: pass.color, transparent: true, side: THREE.DoubleSide} ) material = new…
Chris Glasier
  • 791
  • 2
  • 10
  • 21
4
votes
1 answer

Rendering QWidget to QImage loses alpha-channel

I have a simple Qt widget. It's a QLabel with a simple CSS style applied. The important part of the style is a round border: QString css("border-style: solid;" "border-width: 3px;" "border-radius: 7px;"); It is displayed on screen…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
4
votes
2 answers

Change Alpha value of pixels in Xlib window

I am going through (Change Xlib window background color with C++) & know to set the background color of XWindow. But how can I set the Alpha value of that Xwindow. I tried several things, but when I do read from XWindow, each pixel has Alpha as…
user1409528
  • 123
  • 2
  • 7