transparency

formula for alpha value when blending two transparent colors

hello, lets assume an alpha of 1 means fully opaque and 0 means fully transparent. lets say i have two black images which have 50% transparency (alpha = 0.5). if they are laid on top of each other, the resulting transparency is 0.75, right? if they would have an alpha of 0.25 , the result would be around 0.5, right? if they would ha...

How can I capture an HTML document fragment as an alpha-transparent PNG?

I'm looking for a way of capturing a section of a web page as a transparent-backgrounded PNG. This would mean that the transparent background property would be truly transparent. A root level element, instead of displaying white, would create a png with a transparent background. However, I suspect the behavior I'm looking for just isn't...

Why a .png converted from a gnuplot postscript output, has transparent background?

I used gnuplot (4.2) to write a graph to a postscript file. But when I convert this .ps file to a .png file using the 'convert file.ps file.png' command, I get a png image which has no background (transparent). Why does this happen, and how do I get a png image with a white background? ...

How to do transparency with WebGL/OpenGLES - transparent outer object *enclosing* inner object

Hi, I'm trying to work out a strategy for transparency using WebGL, to support the case of a transparent object that encloses another. As described over at http://learningwebgl.com/blog/?p=859, conceptually we can Render background Enable blending and disable depth test Render foreground I'm a little naive here, and I'd appreciate ...

When blitting a sprite with colorkey transparency in Pygame, the areas that should be transparent are black.

I have a simple program that blits a background image onto the display area, and then puts a sprite in the upper left corner. The sprite uses colorkey transparency, but when I blit the sprite, the areas that should be transparent are black, instead. The color used for the colorkey is a greenish color, so the colorkey is doing something...

how to make a tmemo and Tedit with a transparent background?

how to make a tmemo and Tedit with a transparent background? or add image background on it's canvas. that workable in both Delphi7 up ...

How to make a Xul browser with no background?

I want to render an animation in javascript in a html file. But I don't want my browser component to show the white background. Is there a way to make the background fully transparent? ...

Icon to Image - transparency issue

I'm trying to build a treeview like file list in a richtext box. It should look like an explorer treeview. My code is able to get an resize the icon, but the transparency is missing (light gray background instead of transparency). What do I need to change here? Is the Image format wrong? Is there a better way to add an image to a richte...

How to create videos with transparency/alpha-channel

What is the best way to create a video with an alpha channel, suitable for flex/flash? Does it need to be FLV, or can it be MP4/MOV as well? ...

Add rounded corners to a rectangle raster image

What is the best way to make something like a mask with rounded corners for an image using CSS/JS/HTML? So, I need to add rounded corners to a rectangle image. I thought about adding 4 graphic elements like this one above the image at its corners to hide some little parts of the image. Here red color is, for example, for using on the re...

Make the background of a Label or LinkLabel transparent

Is it possible to make the background of a LinkLabel transparent? Setting the BackColor to the Transparent system color does not work. Matching the BackColor of the container is not suitable because the container is an image. ...

Is there a way to make a semi-transparent div with dynamically placed "holes"

Hi there, I'm creating a page with 2 layers: an image layer and a "mask" layer on top of it which is semi transparent. I want to dynamically place a small rectangle "hole" in that mask so that the original image below it could be seen in that area. Is this possible? The final purpose a is to create an effect of a grayed out image that...

c# transparent or semitransparent panel control

Hi Is there any way to make a panel transparent or semi transparent?? I didn't find any aproperiate property to set transparency to panel. I was also trying to make a wpf control with grid (grid background and control background was set to transparent) and place it on normal windows form, but when I put this control on normal windows f...

Set transparency dynamically in Konsole

I like the transparency effect on Konsole, but when I'm in vim I need to focus and it can be distracting. Is there a way to dynamically turn the transparency on and off, depending on whether my current window is in vim? Maybe I could run a script in place of vim that looks like this: set konsole transparency off; vim; set konsole transp...

How to make the background image transparent in windows mobile?

I am developing the smart device application in C#. I am new to the windows mobile. I have added the background image to the form in my application by using the following code. I want to make this image transparent so that other controls on my windows form will be displayed properly. protected override void OnPaint(PaintEventArgs e) ...

How to make label & other controls transparent with background image on windows mobile?

I am developing the smart device application in C#. I am new to the windows mobile. I have added the background image to the form in my application by using the following code. I want to make label & other controls on this form transparent so that my windows form will be displayed properly. protected override void OnPaint(PaintEventArg...

C# video flickering

I am having some issue in my code which is showing video using vlc interfacing and at the same time I'm showing an overlay on the top of video full screen using Form transparency capability. But this is fine in my Windows 7 PC and it is getting flickering in XP machine. If you know the solution for it I would appreciate your cooperation...

Why sometimes png transparent icons are not transparent with Delphi 2010?

I have a D2010 app with theme support enabled. Is using a TToolbar + TImageList with this setup: ColorDepth: cd32bit DrawingStyle: dsTransparent When run from Delphi, or the folder where is generated the exe the icons are transparent. When I move to another folder or install in another folder, the icons are show with a gray background...

Magento product watermarks are not appearing transparent - any ideas?

Hi, I have a Magento ver. 1.3.3.0 install, I am having a problem with the transparency of product watermarks. The watermark is a .png file but when it is viewed on the product it loses its transparency and has a solid white background. The products on the shop are a wildlife artists paintings so this is really spoiling the artwork. Has...

How to force control ignore any gui events in Silverlight

Hi folks, I have a simple page with canvas control. Inside canvas I have some SL controls like buttons, textboxes etc. Also I cover the controls by semi-transparent Image control. So, when I click on some button, the click message doesn't reach the button, because I click on Image. Is there a way to say the Image that it must not han...