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

Image transparency

Usually I allow my users to place an image in the main form. Because some images cause to much noise, I would like to smooth those a bit. I usually do some transparency in the images that I give as defaults. How can I do this automatically as the…
Jlouro
  • 4,515
  • 9
  • 60
  • 91
1
vote
1 answer

to_rgba in Seaborn stripplot - Set different transparency for filling color and edgecolor

I want to set different transparencies for filling color and edgecolor in seaborn stripplot: import seaborn as sns from matplotlib.colors import to_rgba tips = sns.load_dataset("tips") sns.stripplot(x="day", y="total_bill", hue="smoker", …
Joe
  • 163
  • 8
1
vote
1 answer

Add png to {ggplot2} that has transparent background and was rotated via {magick}

While adding a transparent png to a ggplot works fine via ggplot2::annotation_custom() (but not via patchwork::inset_element), there seem to be problems when rotating the image via magick::image_rotate(). Find the reprex below. Does anyone have a…
Paul Schmidt
  • 1,072
  • 10
  • 23
1
vote
2 answers

How to convert 8-digit hex to the equivalent 6-digit hex code in php?

I am trying to determine colors for my site's themes. A great way I've found to do so is to take a main 6-digit hex color and simply add opacity on to the end of the hex code to get a complimentary color. The problem I'm having is that any time the…
Anna
  • 135
  • 9
1
vote
1 answer

How to change the transparency of an image pixel by pixel

What I want to do is adjust the transparency of every pixel in a picture according to its ink ratio. I will take an example: A node-link graph In this picture, I want to calculate every pixel's ink ratio(That is, the ratio of the part covered by the…
happy
  • 67
  • 7
1
vote
1 answer

How to implement an image scrolling mechanism that has magnification and transparency effects?

I want to implement a component like the one in the images below and I want to learn how it's done, but I couldn't search google to find a similar implementation because I couldn't know how to describe this (maybe because English is not my mother…
aslı
  • 8,740
  • 10
  • 59
  • 80
1
vote
1 answer

pygame fully transparent surface

I'm trying to make a color picker that changes color over time. I have the logic but the process is really slow, the idea is to have a square that changes color and overlap a PNG grayscale gradient onto it so that the program can be faster. The…
Francesco
  • 11
  • 1
1
vote
0 answers

Image merging in plotly with transparency

I'm struggling to come up with a solution using Plotly to reproduce the following code which uses matplotlib. import matplotlib.pyplot as plt import numpy as np plt.figure(figsize=(10, 5), dpi=100) image = np.random.random([300, 5000]) image2 =…
1
vote
1 answer

Jquery - Where can I find an image fader / all other images fading out?

I've been searching for a JQuery based image "fader" and not too sure what to look for. It would start with a series of thumbnail images that are all 100% solid. When you hover over a selected image, all the others turn semi transparent (or in some…
1
vote
4 answers

Rendering a *stuffed* translucent cube in OpenGL

Dunno how to express my confusion but here is how it goes in my mind: A cube with transparent(or translucent) sides is not a solid (filled, stuffed) cube. It's more like an empty glass cube. Now what I want is a solid, stuffed glass cube. Just like…
Ashkan Kh. Nazary
  • 21,844
  • 13
  • 44
  • 68
1
vote
1 answer

Incorrect saving of transparent UIImage to Photo Library as png with UIImageWriteToSavedPhotosAlbum

I have a function cropAlpha() that trims the extra space defined by the transparency. func cropAlpha() -> UIImage { let cgImage = self.cgImage! let width = cgImage.width let height = cgImage.height let colorSpace =…
cybshot
  • 13
  • 2
1
vote
0 answers

How to handle overlapping transparent materials in threejs while using groups in a single BufferGeometry?

I'm having trouble getting the desired result, when rendering a single THREE.BufferGeometry with multiple groups/materials. Desired result (image) Actual result (image) JSFiddle I've created the BufferGeoemtry as such: const boxes = [] const…
1
vote
0 answers

Flutter transparency issues in google chrome

Yesterday I was working on my Flutter app and everything was fine. This morning I ran the build and I noticed that in google chrome half transparant images are no longer transparent. So I have this image as example Where the white should be…
anonymous-dev
  • 2,897
  • 9
  • 48
  • 112
1
vote
1 answer

Converting a PDF to PNG with anti-aliasing and transparent background

I am trying to convert a LaTeX-generated PDF file to a PNG file with anti-aliasing and a transparent background (white text on a black background). After having read the answer to this post and one of the comments to the answer, I compared the…
niran90
  • 248
  • 1
  • 10
1
vote
1 answer

Merging multiple transparent PNGs into one

I am framing ads with a curved border. Here is a sample ad: http://imageshack.us/f/20/4e5f5fe94b327new60seciq.png/ I am trying to replicate what would be done in Photoshop, place one on top of the other. Here is the code I'm using: // create…
cloakedninjas
  • 4,007
  • 2
  • 31
  • 45