alpha

Pygame image transparency confusion [duplicate]

荒凉一梦 提交于 2021-02-02 09:48:35
问题 This question already has answers here : How can I make an Image with a transparent Backround in Pygame? (2 answers) How do I blit a PNG with some transparency onto a surface in Pygame? [duplicate] (4 answers) pygame image background does not match main background (1 answer) How to make a surface with a transparent background in pygame (3 answers) Closed 3 months ago . I have read the top 20 posts relating to this issue here, read many examples on Google, tried using .convert() , .convert

Pygame image transparency confusion [duplicate]

人盡茶涼 提交于 2021-02-02 09:47:25
问题 This question already has answers here : How can I make an Image with a transparent Backround in Pygame? (2 answers) How do I blit a PNG with some transparency onto a surface in Pygame? [duplicate] (4 answers) pygame image background does not match main background (1 answer) How to make a surface with a transparent background in pygame (3 answers) Closed 3 months ago . I have read the top 20 posts relating to this issue here, read many examples on Google, tried using .convert() , .convert

java opencv png image with alpha channel over video issue

此生再无相见时 提交于 2021-01-28 09:29:25
问题 everybody. I'm trying to place ".png" image over the video capture using java and opencv. I performed the tutorial from the official opencv java website http://opencv-java-tutorials.readthedocs.io/en/latest/04-opencv-basics.html In this tutorial everything works fine with png image from the tutorial. But when i try to load my own png image with alpha channel, i get the wrong result. Png image displays with white spaces. Here is the print screens of video capture with both images: correct

java opencv png image with alpha channel over video issue

风格不统一 提交于 2021-01-28 09:23:03
问题 everybody. I'm trying to place ".png" image over the video capture using java and opencv. I performed the tutorial from the official opencv java website http://opencv-java-tutorials.readthedocs.io/en/latest/04-opencv-basics.html In this tutorial everything works fine with png image from the tutorial. But when i try to load my own png image with alpha channel, i get the wrong result. Png image displays with white spaces. Here is the print screens of video capture with both images: correct

WebGL z-buffer artifacts?

会有一股神秘感。 提交于 2021-01-27 17:31:26
问题 We are working on a Three.js based WebGL project, and have trouble understanding how transparency is handled in WebGL. The image shows a doublesided surface drawn with alpha = 0.7, which behaves correctly on its right side. However closer to the middle strange artifacts appear, and on the left side the transparency does not seem to work at all. http://emilaxelsson.se/sandbox/vis1/alpha.png The problem can also be seen here: http://emilaxelsson.se/sandbox/vis1/ Has anyone seen anything similar

How do I blit a PNG with some transparency onto a surface in Pygame? [duplicate]

…衆ロ難τιáo~ 提交于 2020-11-24 22:57:21
问题 This question already has answers here : What is a good way to draw images using pygame? (4 answers) Closed 23 days ago . I'm trying to blit a PNG image onto a surface, but the transparent part of the image turns black for some reason, here's the simple code: screen = pygame.display.set_mode((800, 600), pygame.DOUBLEBUF, 32) world = pygame.Surface((800, 600), pygame.SRCALPHA, 32) treeImage = pygame.image.load("tree.png") world.blit(treeImage, (0,0), (0,0,64,64)) screen.blit(world, pygame.rect

How do I blit a PNG with some transparency onto a surface in Pygame? [duplicate]

家住魔仙堡 提交于 2020-11-24 22:54:42
问题 This question already has answers here : What is a good way to draw images using pygame? (4 answers) Closed 23 days ago . I'm trying to blit a PNG image onto a surface, but the transparent part of the image turns black for some reason, here's the simple code: screen = pygame.display.set_mode((800, 600), pygame.DOUBLEBUF, 32) world = pygame.Surface((800, 600), pygame.SRCALPHA, 32) treeImage = pygame.image.load("tree.png") world.blit(treeImage, (0,0), (0,0,64,64)) screen.blit(world, pygame.rect

How do I blit a PNG with some transparency onto a surface in Pygame? [duplicate]

怎甘沉沦 提交于 2020-11-24 22:53:35
问题 This question already has answers here : What is a good way to draw images using pygame? (4 answers) Closed 23 days ago . I'm trying to blit a PNG image onto a surface, but the transparent part of the image turns black for some reason, here's the simple code: screen = pygame.display.set_mode((800, 600), pygame.DOUBLEBUF, 32) world = pygame.Surface((800, 600), pygame.SRCALPHA, 32) treeImage = pygame.image.load("tree.png") world.blit(treeImage, (0,0), (0,0,64,64)) screen.blit(world, pygame.rect

How do I blit a PNG with some transparency onto a surface in Pygame? [duplicate]

為{幸葍}努か 提交于 2020-11-24 22:50:32
问题 This question already has answers here : What is a good way to draw images using pygame? (4 answers) Closed 23 days ago . I'm trying to blit a PNG image onto a surface, but the transparent part of the image turns black for some reason, here's the simple code: screen = pygame.display.set_mode((800, 600), pygame.DOUBLEBUF, 32) world = pygame.Surface((800, 600), pygame.SRCALPHA, 32) treeImage = pygame.image.load("tree.png") world.blit(treeImage, (0,0), (0,0,64,64)) screen.blit(world, pygame.rect