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
1
vote
0 answers

How to set transparent background on Compose Multiplatform view on iOS?

I have the simplest setup in Kotlin with org.jetbrains.compose v 1.4.0 fun MainViewController() = ComposeUIViewController { Button(onClick = { }) { Text("Click me") } } On iOS i have: struct ComposeView:…
turbohenoch
  • 163
  • 1
  • 6
1
vote
0 answers

Octave: I've generated a translucid sphere with surfl(), but it gives graphical artifacts. Why, and how to fix/avoid it?

I need to render a translucid sphere so I can render and visualize solid lines inside it and generate images for a publication. But when rendering a sphere with FaceAlpha lesser than 1, a weird artifact appears. Sure, the sphere is still translucid,…
RodrigoCns
  • 111
  • 4
1
vote
1 answer

How to set a pixel as transparent for 8-bit pngs when encoding with libpng?

I'm trying to mark pixels as transparent when encoding rgb data to 8-bit png image (palette) using libpng. If I create a separate alpha channel in this case, the alpha channel is getting ignored. Is there a way to set the pixels as opaque or…
ivymike
  • 1,511
  • 2
  • 20
  • 27
1
vote
0 answers

Basic image translation flicker issue

I'm working on a project where I need the ability to load images into the program and drag them around, which means that they will have to be able to overlap. The program needs to be able to work with different image formats, such as jpg and png. I…
Mobster
  • 11
  • 3
1
vote
0 answers

Transparent layer in tkInter

I'm trying to create a transparent layer on top of the whole screen and display pointer position. This is what I'm playing with: #!/usr/bin/python3 import tkinter as tk from tkinter import ttk def hover( root, lb): x,y = root.winfo_pointerxy() …
user3435121
  • 633
  • 4
  • 13
1
vote
1 answer

How to place div1 below div2 and keep div1 transparent background?

Content
#header { background-image: url("/Content/Images/bg.png"); background-repeat: repeat-x; float: left; height: 45px; margin: 0; width: 960px; …
Hello World
  • 115
  • 1
  • 9
1
vote
1 answer

How to make UIImage fully opaque so that nothing shows through from the background?

I have a UIImageView that I am making a child view of a larger UILabel, using addSubview:. Part of the image (a PNG -- using UIImage) has a transparent background and part of it does not. This is because the image is a circle and I want any…
Alyoshak
  • 2,696
  • 10
  • 43
  • 70
1
vote
1 answer

Android register touch events on visible portion of image?

I've currently been thinking about how I could register only touch events on the visible (non-transparent) parts of a .PNG image. -I've been testing around with AndEngine and it seems they have multiple options: I've tried any I could find to no…
While-E
  • 1,527
  • 2
  • 20
  • 37
1
vote
1 answer

Java: MouseEvent on transparent JPanel

I have a LayeredPane with two JPanels, all in a JFrame. Both JPanels are set to be transparent with setOpaque(false). However, I would like to capture mouse events on the (top, if it makes a difference) transparent panel. Is this possible, or should…
wchargin
  • 15,589
  • 12
  • 71
  • 110
1
vote
1 answer

Button with transparent png image in .Net WPF

I have a WPF Button which should be displayed with a png image which has transparent areas. This is my xaml code, which works for displaying an image:
1
vote
0 answers

Have Direct2D, DXGI SwapChain, HWND transparency, all working at once in C++, without XAML or similar

Context I have 2 big projects I'm working on: a game engine, and a file explorer replacement. My focus is Windows only. I know they're 2 huge things I'll likely never complete, I just enjoy coding during free time. Across my many projects I started…
Barnack
  • 921
  • 1
  • 8
  • 20
1
vote
0 answers

PictureBbox for Game Character

I'm just a beginner in programming. Right now I am familiarizing myself to it and I am using Vb.net as a practice. I am trying to make a basic game in VS2019 and I use picturebox as a component for the character to move. Whenever I am moving it,…
1
vote
1 answer

How to refresh a transparent screen in libGdx

I am working on a small libGdx project at the moment and I am facing now some trouble concerning a transparent screen. This transparent screen is called 'GameMenuScreen' because it can be called throughout the game. If it is called the…
Morgoth
  • 13
  • 4
1
vote
1 answer

Restrict the clickable area of an SVG to its visiblePainted contents

I have a simple SVG that contains a triangle and toggles its fill color when it's clicked: const toggleFill = (element) => { if (element.style.fill === 'silver') { element.style.fill = 'grey'; } else { element.style.fill = 'silver'; …
Altay_H
  • 489
  • 6
  • 14
1
vote
2 answers

How do I clear a pygame alpha layer efficiently?

I'm trying to write a 2D game using python / pygame that blits several layers on top of one another every screen refresh. My basic setup is (from bottom to top): Background: surface (non-transparent), scrolls at a different rate than…
drinkdecaf
  • 385
  • 2
  • 12