alpha-transparency

Resize png image in Delphi - incorrect alpha channel

三世轮回 提交于 2019-12-12 13:50:11
问题 I am resizing png images which might have alpha channel. Everything works good, with one exception: I get some gray pixels around the transparent areas. The original image doesn't have any drop shadows. Is there a way to fix this / work it around? I am using SmoothResize by Gustavo Daud (See the first answer to this question), to resize the png image. I cannot provide the code that I am using as I did not write it and do not have the author's permission to publish it. 回答1: I suspect that is

Distinguish between transparency and extra alpha channels?

点点圈 提交于 2019-12-12 03:52:10
问题 I am sorry in advance if I am not explaining my question really well. I am not 100% aware of the stuff I am asking. Lets say that I have some CMYK tiff files. Is there a way that I can distinguish the difference between transparency and extra alpha channel ? I used exiftools in the terminal with the command : exiftool -G -S filename.tif and I got a tag (ExtraSamples) that provides information about the alpha channel. Is there a way that I can distinguish the aforementioned difference ? Thanks

textures with transparent background by using alpha blending opengl

百般思念 提交于 2019-12-11 16:48:05
问题 I have scar textures and I want to get rid of the background skin colour by using alpha blending. However, I have problems with changing the opacity of individual pixels of specific textures. What is the easiest way to have textures with transparent background? I am using C++ and openGL. I am using a BMP picture format and I am trying to map that scar texture onto the face but background colour of scar texture seems ugly on the face, so I want to remove that part and have only scar texture

Video with transparency, how to display alpha channel of webm files correctly on every device; VP9 or VP8 encoding?

醉酒当歌 提交于 2019-12-11 12:52:12
问题 About how to get a transparent background with a webm video via alpha channel, here is one person that says you should encode with VP8 and not VP9. WebM Alpha only displayed in Chrome? And here is another person who says it's the opposite thing, like it should be VP9 and not VP8. Transparent webm video displays solid background color on Chrome for Android 68 on android 9.0 Is there a way to make every device display webm files that contain alpha channel correctly? EDIT1: HERE ARE SOME TEST

Transparent Splashscreen Picture Qt

纵饮孤独 提交于 2019-12-11 12:49:33
问题 I have created a splash-screen.png for my application. Unfortunately all the parts that should be transparent are drawn as a rectangle. To be able to understand better what I mean a small example-description: (I havnt got enough reputation to put a picture into the forum) Lets say I have a png as splash-screen which shows a sphere. The sphere should stand for itself, but Qt draws a rectangle around it, which destroys all the atmosphere. Would be very grateful if you know if there is another

Delphi 6 support for toolbar and menu icons with alpha channel transparency

纵饮孤独 提交于 2019-12-11 11:49:19
问题 We have a legacy application developed in Delphi 6 (yes, I know this is an ancient IDE now), which we are trying to update to look more modern. We have added in a Manifest and now have it using version 6 Windows controls and taking on the Windows Visual Theme (all good). However, when trying to replace the old 4 bit toolbar and menu icons with True Colour with Alpha Channel (32 bit) transparency we have hit a problem. It appears that Delphi 6 only supports transparency based on the bottom

PHP imagick gif to jpg - background

北战南征 提交于 2019-12-11 11:09:58
问题 I've this gif: https://dl.dropboxusercontent.com/u/76885657/stackoverflow/2.gif (transparent background) And with this code: $im = new Imagick(); $im->readimage("example.gif"); $im->setImageAlphaChannel(11); $im->setImageBackgroundColor('white'); $im->setImageFormat("jpg"); $im->stripImage(); $im->writeImage("example.jpg"); $im->clear(); $im->destroy(); Results: https*://dl.dropboxusercontent.com/u/76885657/stackoverflow/3.jpg(without *) (gold background) But want this: https://dl

Render multiple Image Layers to transparent PNG image

女生的网名这么多〃 提交于 2019-12-11 05:29:47
问题 Not exactly sure how to word this question, so I will go on to explain the details, and try to ask as best I can form it. I have a project which consists of the following components Canvas - Inherits PictureBox control Layers - A collection of "Layer" Layer - Can contain a collection of Graphics as Images with information. Each layer can be moved and the selection box for the layer is constrained to the portion of the layer which contains graphics at maximum bounds. All of the above is

Change brightness of jframe

耗尽温柔 提交于 2019-12-11 04:49:33
问题 I have a program, and it runs in a jframe in full screen exclusive mode. I am trying to change the brightness of the jframe. I was wondering how i would implement this. I thought it might be possible to change all the colors of the images getting drawn to the jframe and make them brighter, but it still does not change how bright the screen actually is. How do programs normally implement something like this. 回答1: At the end of your draw loop: g.setColor(new Color(0, 0, 0, 0.5f)); // 50% darker

Saving a one color bitmap with alpha channel in Windows Forms saves a different (wrong) color

依然范特西╮ 提交于 2019-12-10 21:28:35
问题 In C#, .NET 2.0, Windows Forms, Visual Studio Express 2010, I'm saving an image made of the same color: Bitmap bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb); using (Graphics graphics = Graphics.FromImage(bitmap)) { Brush brush = new SolidBrush(color); graphics.FillRectangle(brush, 0, 0, width, height); brush.Dispose(); } bitmap.Save("test.png"); bitmap.Save("test.bmp"); If I'm using, for example Color [A=153, R=193, G=204, B=17] or #C1CC11 after I'm saving the image and open