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

How to create Splash screen with transparent background in JavaFX

I am trying to create a splash screen like the example I've provded. It seems that AnchorPane does not allow transparent background, I've tried setting the css of the AnchorPane to -fx-background-color: rgba(255,0,255,0.1) ; but the white background…
francisOpt
  • 860
  • 1
  • 8
  • 15
23
votes
1 answer

Cropping image with transparency in iPhone

I am working on Jigsaw type of game where i have two images for masking, I have implemented this code for masking - (UIImage*) maskImage:(UIImage *)image withMaskImage:(UIImage*)maskImage { CGColorSpaceRef colorSpace =…
iCoder86
  • 1,874
  • 6
  • 26
  • 46
22
votes
4 answers

Transparent background in grouped UITableView - iPhone

I want to make the grouped UITableView transparent. I partially succeded with the following code: UIColor *bgColor = [[UIColor alloc] initWithWhite:1 alpha:0.0]; historyTable.backgroundColor = bgColor; Unfortunately, black corners appeared in the…
Jacek
  • 1,894
  • 5
  • 21
  • 34
22
votes
4 answers

Set transparency of a DIV and its contents using jQuery

What is the best way to set the transparency of a HTML DIV element and its contents using jQuery?
Keith Adler
  • 20,880
  • 28
  • 119
  • 189
21
votes
6 answers

Java: Filling a BufferedImage with transparent pixels

I have an off-screen BufferedImage, constructed with the type BufferedImage.TYPE_INT_ARGB. It can contain anything, and I'm looking for a way to (fairly efficiently) completely overwrite the image with transparent pixels, resulting in an…
JBenson
  • 293
  • 2
  • 5
  • 13
21
votes
4 answers

White Border along with transparency in "LinearLayout"

I wanted to add a linear layout, having a transparent background as well as with white borders. The problem is: as far as I have googled, I can achieve only one out of both. Here's what I did: Saved the following as border.xml in drawable …
anurag
  • 2,176
  • 2
  • 22
  • 41
21
votes
9 answers

Transparent ViewController to See Parent Below?

I would like to modally add a view controller with a transparent background, so the parent view controller beneath can be seen. (This is in an app for iPhone, not for iPad.) I have tried this: TextFieldViewController *vc = [self.storyboard…
Josh Kahane
  • 16,765
  • 45
  • 140
  • 253
21
votes
2 answers

How to make WebGL canvas transparent

Is it possible to have WebGL canvas with transparent background? I want to have contents of web page visible through the canvas. This is what I have now: http://i50.tinypic.com/2vvq7h2.png As you can see, the text behind the WebGL canvas is not…
Jack Sean
  • 213
  • 1
  • 2
  • 4
20
votes
2 answers

android how to draw a bitmap on canvas semi transparent

I have tried to modify a Paint variable, but have been unsuccessful - how can I make a bitmap appear "semi-transparent"?
GideonKain
  • 744
  • 1
  • 12
  • 27
20
votes
2 answers

How to make a tkinter canvas rectangle transparent?

I need to make my tkinter rectangles transparent. Does anyone know how to do that? I have tried to specify alpha=".5", opacity=".5", and I have tried to add two more digits in the end of the color code: fill="#ff000066". None of these things seem to…
Jånny
  • 205
  • 1
  • 2
  • 7
20
votes
2 answers

Specify transparency level of a named color in XAML

Is there a way in XAML to create a color object from a named color with different custom transparency level? e.g.
dotNET
  • 33,414
  • 24
  • 162
  • 251
19
votes
1 answer

Semi-transparent slanted background

I want to create an html element, e.g. a div, which is styled as follows: semi-transparent background-color rounded borders on all edges left side of the div draws a straight line right side of the div draws a skewed line I'd like to create this…
jessica
  • 480
  • 6
  • 17
19
votes
5 answers

CSS - Linear gradient transparency on both side of image

tl;dr Is there any way to add transparency to images in CSS with -webkit-linear-gradient on left, and right side of the image? Long Version I have an image I want to add transparency - with pure CSS - on both side of it avoiding using any image…
balintpekker
  • 1,804
  • 4
  • 28
  • 42
19
votes
4 answers

Change color of non-transparent parts of png in Java

I am trying to automatically change the color for a set of icons. Every icon has a white filled layer and the other part is transparent. Here is an example: (in this case it's green, just to make it visible) I tried to do the following: private…
4ndro1d
  • 2,926
  • 7
  • 35
  • 65
18
votes
6 answers

Bug : Theme.Translucent & FLAG_ACTIVITY_REORDER_TO_FRONT

I have an activity with the translucent Theme : android:theme="@android:style/Theme.Translucent.NoTitleBar" Also the problem is reproduceable with just this Theme: