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

Adjust Transparency (alpha) of stat_smooth lines, not just transparency of Confidence Interval

Using ggplot2's stat_smooth(), I'm curious how one might adjust the transparency of the generated regression line. Using geom_points() or geom_line(), one normally sets a value for 'alpha', indicating the percent transparency. However, with…
EconomiCurtis
  • 2,107
  • 4
  • 23
  • 33
58
votes
2 answers

Plotting with a transparent marker but non-transparent edge

I'm trying to make a plot in matplotlib with transparent markers which have a fixed color edge . However, I can't seem to achieve a marker with transparent fill. I have a minimum working example here: import numpy as np import matplotlib.pyplot as…
IanRoberts
  • 2,846
  • 5
  • 26
  • 33
56
votes
6 answers

Can you add a non-square drop shadow to PNG content with CSS?

Is it possible to do a drop shadow on the content of a PNG? Not a square, but an object drop shadow that acts on the non-transparent content of the PNG.
Kirk Strobeck
  • 17,984
  • 20
  • 75
  • 114
56
votes
2 answers

Creating a transparent window in C++ Win32

I'm creating what should be a very simple Win32 C++ app whose sole purpose it to ONLY display a semi-transparent PNG. The window shouldn't have any chrome, and all the opacity should be controlled in the PNG itself. My problem is that the window…
adoss
  • 1,121
  • 1
  • 9
  • 9
55
votes
17 answers

CSS to hide INPUT BUTTON value text

I am currently styling an element with the following CSS: background: transparent url(someimage); color: transparent; I want the button to show as an image, but I don't want the value text to display on top of it. This works…
Scott Evernden
  • 39,136
  • 15
  • 78
  • 84
55
votes
3 answers

Transparency vs. White background in Inkscape

I am using Inkscape and I know how to use transparency within the image, but I am annoyed that the background of the workspace in Inkscape is white. I searched through a lot of settings, but had no luck. How do I get the workspace checkered like in…
jex
  • 643
  • 1
  • 8
  • 9
55
votes
2 answers

Seek Bar thumb not transparent in Android 5.0 API 21 Lollipop

API Level < 21 Thumb is transparent, as expected. On API Level 21 Thumb is opaque, Wonder why. Here is the code
Vinay W
  • 9,912
  • 8
  • 41
  • 47
53
votes
3 answers

How to make a surface with a transparent background in pygame

Can someone give me some example code that creates a surface with a transparent background in pygame?
Paul D. Eden
  • 19,939
  • 18
  • 59
  • 63
53
votes
8 answers

Hex colors: Numeric representation for "transparent"?

I am building a web CMS in which the user can choose colours for certain site elements. I would like to convert all colour values to hex to avoid any further formatting hassle ("rgb(x,y,z)" or named colours). I have found a good JS library for…
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
51
votes
15 answers

Android Transparent TextView?

Simply, how to make a TextView transparent? (Not full transparency) I searched the docs and the StackNetwork and couldn't find it? I guess there is something like this. Thanks. UPDATE This is the XML code:
iTurki
  • 16,292
  • 20
  • 87
  • 132
46
votes
4 answers

What is the impact of view.alpha = 0 vs view.hidden = YES?

Transparency is evil, on iOS devices even more so than on heavier machines. I therefore figured to use view removeFromSuperView first, if not applicable view.hidden=YES and as a last resort view.alpha=0. But I actually don't know what's going on…
epologee
  • 11,229
  • 11
  • 68
  • 104
44
votes
6 answers

Is it possible to use transparency in an iPhone app icon?

I created a 57×57 circular icon (without shine) which has transparency outside of the circle for my app. I can successfully install the app on Simulator and iPhone. It works fine, and looks great. However, can I submit an icon with transparency to…
yukon
  • 461
  • 1
  • 4
  • 4
44
votes
4 answers

Turn image sequence into video with transparency

I've got what seems like it should be a really simple problem, but it's proving much harder than I expected. Here's the issue: I've got a fairly large image sequence consisting of numbered frames (output from Maya, for what its worth). The images…
Cody Hatch
  • 8,857
  • 6
  • 29
  • 36
43
votes
5 answers

PNG Transparency with PHP

Hey having some trouble trying to maintain transparency on a png when i create a thumbnail from it, anyone any experience with this? any help would be great, here's what i am currently doing: $fileName=…
BastardPrince
  • 433
  • 1
  • 4
  • 4
42
votes
1 answer

How to CREATE a transparent gif (or png) with PIL (python-imaging)

Trying to create a transparent gif with PIL. So far I have this: from PIL import Image img = Image.new('RGBA', (100, 100), (255, 0, 0, 0)) img.save("test.gif", "GIF", transparency=0) Everything I've found so far refers to manipulating…
gratz
  • 1,506
  • 3
  • 16
  • 34