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
2
votes
1 answer

Transparent Bitmap in ImageView

I'd like to draw something over an existing bitmap while keeping the Bitmaps seperated. So the idea is to have a RelativeLayout and two ImageViews stacked onto each other, the top one holding the bitmap to be drawn to and the bottom one holding the…
Will Kru
  • 5,164
  • 3
  • 28
  • 41
2
votes
1 answer

Set the visibility of components within a transparent JFrame

Question: To hide a JPanel which has been added to a transparent JFrame when the button is clicked. Problem: The JPanel is not correctly hidden, but is still shown with darker colour. Without the alpha channel enabled, it hides ok. Thanks for your…
Jon
  • 193
  • 2
  • 10
2
votes
2 answers

Set transparency of a quad in starling

OK, so it blows my mind, so help me please, I'd like to use a transparent quad in my starling project, it has a property: color of ARGB, so I set the alpha to 90 for example, but it just doesn't seem to work like that. now I've changed it's blend…
Ferenc Dajka
  • 1,052
  • 3
  • 17
  • 45
2
votes
2 answers

Android transparent SurfaceView clears to black

I want to put a transparent SurfaceView on top of an ImageView. I have the following in the SurfaceView subclass constructor setZOrderOnTop(true); // necessary SurfaceHolder h = getHolder(); h.setFormat(PixelFormat.TRANSPARENT); I also have this…
user1692811
  • 43
  • 1
  • 4
2
votes
1 answer

How to get a snapshot image of what is under a window?

I want to fade a WPF window in, but I can't do that unless the window is set to transparent and window style is set to none, and I don't want that. Instead I want to create the illusion that the window is fading in by putting on top of it whatever…
IneedHelp
  • 1,630
  • 1
  • 27
  • 58
2
votes
2 answers

Translucent window with Windows look and feel?

I'm playing with JDK7's translucent window support and find that it doesn't work well with Windows look and feel. Here's my code: JFrame.setDefaultLookAndFeelDecorated(true); SwingUtilities.invokeLater(new Runnable() { @Override public void…
Zhao Yi
  • 2,335
  • 7
  • 23
  • 27
2
votes
2 answers

creating a toggle function in emacs

How to get a function that toggles transparency for instance? Possible candidates for the toggle could be, 0%, 85%, 100% or maybe just 2 of those... (defun transparency-toggle () "Toggle transparency." (interactive) (add-to-list…
PascalVKooten
  • 20,643
  • 17
  • 103
  • 160
2
votes
3 answers

WPF transparent borders causes the UI to stop redrawing

As a follow up to my previous question, I am wondering how to use transparent windows correctly. If I have set my window to use transparency, the UI will occasionally appear to stop responding. What is actually happening is that the UI simply is…
palehorse
  • 26,407
  • 4
  • 40
  • 48
2
votes
1 answer

Gtk# example to make an EventBox transparent

I need to create an image with transparency placed on top of another image, inside a regular Gtk# window. The first image should be able to respond to mouse clicks. The simple way would usually be to put an Image inside an EventBox - and inside the…
OM55
  • 1,038
  • 8
  • 10
2
votes
3 answers

Draw transparent arcs, not images, in J2ME?

I've been happily coding an opensource game for fun, but I just realized that Graphics.setColor() doesn't understand 0xAARRGGBB. I want to get a more and more transparent colour, in which I'd draw some arcs (discs). My goal was to make them shine…
Konrad 'ktoso' Malawski
  • 13,102
  • 3
  • 47
  • 52
2
votes
2 answers

Overlapping Panels in C#

I am using the GUI forms builder in c#. I have a TransparencyKey set, and the backGround color of the whole form is set to that Transparency key so the background of the form seems invisible. I also have a login panel that appears at first and after…
cozmokramer8
  • 203
  • 1
  • 6
  • 13
2
votes
2 answers

Make text transparent in Shoes.app

Is there a way in Shoes to have text show up transparent? I have: Shoes.app{ para "Text", :stroke => rgb(1.0,0.0,0.0,0.5), :size => 100 } But it's just showing up 100% red. I know opacity works for fill, does it also work for stroke? (I am…
Alec Jacobson
  • 6,032
  • 5
  • 51
  • 88
2
votes
2 answers

Add a transparent gradient to a JPanel?

I'm drawing a couple of shapes on a JPanel using the paintComponent() method. The final touch is to add a transparent white gradient towards the top. I have this: and I want to get something like this: I've tried to use the GradientPaint method,…
Redandwhite
  • 2,529
  • 4
  • 25
  • 43
2
votes
1 answer

PictureBox with transparent background

Possible Duplicate: A PictureBox Problem I have a TabPage which hosts some custom PictureBox controls. What I do here is drawing some IC packages which user can click on theire pins to get some info. User can add multiple of this pictureboxes to…
Dumbo
  • 13,555
  • 54
  • 184
  • 288
2
votes
1 answer

transparant background in a jframe but with window border etc

So i can try and ask my problem but for your sake and my sake i have created a simple image in photoshop to try to tell you what i want to achieve: I have tried to work with the Opaque stuff in AWTUtilities but it does not seem to work do you guys…
sn0ep
  • 3,843
  • 8
  • 39
  • 63