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
1441
votes
8 answers

Hex transparency in colors

I'm working on implementing a widget transparency option for my app widget although I'm having some trouble getting the hex color values right. Being completely new to hex color transparency I searched around a bit although I couldn't find a…
SweSnow
  • 17,504
  • 10
  • 36
  • 49
719
votes
19 answers

How to make a background 20% transparent on Android

How do I make the background of a Textview about 20% transparent (not fully transparent), where there is a color in the background (i.e. white)?
Adham
  • 63,550
  • 98
  • 229
  • 344
505
votes
7 answers

SVG fill color transparency / alpha?

Is it possible to set a transparency or alpha level on SVG fill colours? I've tried adding two values to the fill tag (changing it from fill="#044B94" to fill="#044B9466"), but this doesn't work.
Ollie Glass
  • 19,455
  • 21
  • 76
  • 107
293
votes
15 answers

Drop shadow for PNG image in CSS

I have a PNG image, that has free form (non square). I need to apply drop-shadow effect to this image. The standard approach ... -o-box-shadow: 12px 12px 29px #555; -icab-box-shadow: 12px 12px 29px #555; -khtml-box-shadow: 12px 12px 29px…
AntonAL
  • 16,692
  • 21
  • 80
  • 114
247
votes
20 answers

Make UINavigationBar transparent

How do you make a UINavigationBar transparent? Though I want its bar items to remain visible.
quano
  • 18,812
  • 25
  • 97
  • 108
232
votes
10 answers

Understanding colors on Android (six characters)

I am trying to understand how colors work in Android. I have this color set as the background of my LinearLayout, and I get a background gray with some transparency:
Thiago
  • 5,152
  • 11
  • 35
  • 44
228
votes
12 answers

How to change the opacity (alpha, transparency) of an element in a canvas element?

Using the HTML5 element, I would like to load an image file (PNG, JPEG, etc.), draw it to the canvas completely transparently, and then fade it in. I have figured out how to load the image and draw it to the canvas, but I don't know how to…
Joe Lencioni
  • 10,231
  • 18
  • 55
  • 66
219
votes
12 answers

How can I produce an effect similar to the iOS 7 blur view?

I'm trying to replicate this blurred background from Apple's publicly released iOS 7 example screen: This question suggests applying a CI filter to the contents below, but that's a whole different approach. It's obvious that iOS 7 doesn't capture…
Snowman
  • 31,411
  • 46
  • 180
  • 303
174
votes
23 answers

Android WebView style background-color:transparent ignored on android 2.2

I'm struggling to create a WebView with transparent background. webView.setBackgroundColor(0x00FFFFFF); webView.setBackgroundDrawable(myDrawable); Then I load a html page with
jptsetung
  • 9,064
  • 3
  • 43
  • 55
168
votes
3 answers

How to export plots from matplotlib with transparent background?

I am using matplotlib to make some graphs and unfortunately I cannot export them without the white background. In other words, when I export a plot like this and position it on top of another image, the white background hides what is behind it…
Cupitor
  • 11,007
  • 19
  • 65
  • 91
157
votes
6 answers

How to make graphics with transparent background in R using ggplot2?

I need to output ggplot2 graphics from R to PNG files with transparent background. Everything is ok with basic R graphics, but no transparency with ggplot2: d <- rnorm(100) #generating random data #this returns transparent…
Yuriy Petrovskiy
  • 7,888
  • 10
  • 30
  • 34
144
votes
6 answers

How to check if a specific pixel of an image is transparent?

Is there any way to check if a selected (x,y) point of a PNG image is transparent?
Danny Fox
  • 38,659
  • 28
  • 68
  • 94
140
votes
7 answers

How do you completely remove the button border in wpf?

I'm trying to create a button that has an image in it and no border - just like the Firefox toolbar buttons before you hover over them and see the full button. I've tried setting the BorderBrush to Transparent, BorderThickness to 0, and also tried…
None
138
votes
3 answers

Setting transparent images background in IrfanView

I have some PNG images which consist of a black shape and a transparent background. Unfortunately, IrfanView shows transparent background as black color, so I see just black on black. I've found in Irfan settings that I can change the window's…
amik
  • 5,613
  • 3
  • 37
  • 62
127
votes
8 answers

How to make completely transparent navigation bar in iOS 7

I want the UINavigationBar in my app to be completely transparent and flush with the viewcontroller directly under it. However, the only code I could find makes it translucent but not transparent. I know this can be done in iOS 7 because it is used…
cory ginsberg
  • 2,907
  • 6
  • 25
  • 37
1
2 3
99 100