Questions tagged [transparency]

Transparency is the property of being see-through; a transparent object reveals objects behind it. Transparency is also known as alpha blending. The opposite of transparency is opacity.

Transparency in technology is an attribute of a graphical object and refers to the degree to which the object can be seen through.

Objects can be layered on top of one another, the order of which is decided by a . An object which is rendered "on top of" another may have a transparency level where the object underneath is seen through the object on top, with the view of the object underneath blended () with that of the object on top.

Transparency is the opposite of .

See also:

3519 questions
42
votes
1 answer

Adjusting Text background transparency

I'm trying to put some text with a background on a matplotlib figure, with the text and background both transparent. The following code import numpy as np import matplotlib.pyplot as plt plt.figure() ax =…
Jon Rein
  • 868
  • 2
  • 8
  • 13
42
votes
4 answers

ImageButton doesn't highlight on click with Transparent background

I've set up an ImageButton to be transparent, so the icon matches the backgrond panel like the Android ActionBar. This looks fine as I want it to. However, when the background is transparent, there isn't the blueish highlight you see as when you…
Stealth Rabbi
  • 10,156
  • 22
  • 100
  • 176
41
votes
3 answers

How to create a semi transparent window in WPF that allows mouse events to pass through

I am trying to create an effect similar to the Lights out /lights dim feature in Adobe Lightroom (http://www.youtube.com/watch?v=87hNd3vaENE) except in WPF. What I tried was to create another window over-top of my existing window, make it…
RMK
  • 877
  • 1
  • 9
  • 16
41
votes
3 answers

How to convert rgba to a transparency-adjusted-hex?

I'm wondering how to convert rgba into hex in a way that translates the visible rgba-color (including transparency) into a hex value. Say I have this: rgba(0,129,255,.4) Which is sort of a "light blue"... I would like to know if there is a way to…
frequent
  • 27,643
  • 59
  • 181
  • 333
38
votes
3 answers

CSS lighten child elements on parent mouseover

here is my problem. I have a div which contains two other divs: basically one for header, one for content. I'd like to lighten (change alpha level, or some other method is welcomed), when the user points the mouse over the parent div. Colors of both…
ZolaKt
  • 4,683
  • 8
  • 43
  • 66
37
votes
5 answers

Drawing PNG to a canvas element -- not showing transparency

I'm trying to use drawImage to draw a semi-transparent PNG on a canvas element. However, it draws the image as completely opaque. When I look at the resource that's being loaded and load the actual PNG in the browser, it shows the transparency, but…
pixielex
  • 779
  • 2
  • 8
  • 13
37
votes
2 answers

Convert PNG to JPG and set transparent background to white with ImageMagick and PHP

How can I use ImageMagick (with the php extension) to set the transparent background to white when converting an image from PNG to JPEG?
John
  • 383
  • 1
  • 3
  • 5
36
votes
5 answers

Is it possible to render web content over a clear background using WebKit?

I'm trying to gauge the possibility of a patch to WebKit which would allow all rendered graphics to be rendered onto a fully transparent background. The desired effect is to render web content without any background at all, it should appear to float…
Mark Renouf
  • 30,697
  • 19
  • 94
  • 123
36
votes
6 answers

How to make Matplotlib scatterplots transparent as a group?

I'm making some scatterplots using Matplotlib (python 3.4.0, matplotlib 1.4.3, running on Linux Mint 17). It's easy enough to set alpha transparency for each point individually; is there any way to set them as a group, so that two overlapping points…
Jason
  • 463
  • 1
  • 4
  • 5
36
votes
4 answers

Border with rounded corners & transparency

The following screenshot shows a test of TextBubbleBorder1. I would like to make the corners of the component that are outside the rectangle to be entirely transparent & show whatever component is beneath it. I found a way to restrict the BG color…
Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
33
votes
3 answers

How do you override the opacity of a parent control in WPF?

When you set the opacity on a Grid in WPF, all the child elements appear to inherit its Opacity. How can you have a child element not inherit the parent's opacity? For example, the following parent grid has one child grid in the middle with a…
Metro Smurf
  • 37,266
  • 20
  • 108
  • 140
32
votes
8 answers

JPEG image with transparency

I would like to make a JPEG image file with some pixels that are partially transparent or fully transparent, similar to a PNG file with an alpha channel. Is this possible? If so, how would I go about doing this? I would like to use the image on a…
Elias Zamaria
  • 96,623
  • 33
  • 114
  • 148
31
votes
3 answers

What is the difference between "opacity" and "filter: opacity()"

Most of us know the simple opacity CSS rule, but recently I stumbled upon filter which can have opacity(amount) as it value - among other things. But what exactly is the difference between the two?
Bram Vanroy
  • 27,032
  • 24
  • 137
  • 239
31
votes
2 answers

How to use alpha transparency in OpenGL?

Here's my code: void display(void); int main(int argc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE|GLUT_RGBA); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable( GL_BLEND ); …
H-H
  • 4,431
  • 6
  • 33
  • 41
29
votes
11 answers

Reasons for why a WinForms label does not want to be transparent?

Why can't I set the BackColor of a Label to Transparent? I have done it before, but now it just don't want to... I created a new UserControl, added a progressbar and a label to it. When I set the BackColor of the label to transparent it is still…
Svish
  • 152,914
  • 173
  • 462
  • 620