transparent

How do I create a transparent bitmap with Direct2D?

I am trying to create a PNG bitmap with RGB+A info. I want to draw a rectangle on the bitmap that is semi transparent (In other words, R=255, G=255, B=255 A = 128). I am using managed code so either SlimDX or the codepack API. The most straight forward route appears to be using the codepack api and WIC so I created a WIC bitmap with: ...

Make WPF TextBox or other focusable controls transparent to certain key presses (i.e. pass-through, not swallow)

I have a ListBox with a custom data template which contains a CheckBox, a TextBlock and a TextBox. Normally when you select an item in a ListBox, the underlying ListBoxItem is actually what has the focus and as such, it responds to the up and down keys. Additionally, if the CheckBox has focus, since it doesn't do anything with the up a...

What is the best way to have only non-transparent pixel hit testable in images in Silverlight?

According to msdn in Silverlight images are hit testable over their image/media display areas, basically their Height and Width. Transparent / full alpha pixels in the image file are still hit testable. My question is now, what is the best way to have only non-transparent pixel hit testable in images in Silverlight? ...

How to make MapView object transparent (alpha)?

All, I have a need to display information on a MapView object. No problems there. The issue is that there are times when the MapView object displays map details that visually compete with my overlay data. So, what I'd like to do is provide a way to "scale back" the MapView object visually by using an alpha channel. bold*Can an alpha...

IE8: Div hover only works when background color is set, very strange, why?

Situation: Got a div with buttons images. Div needs to fadeIn on hover. Works in all browsers, except Internet Explorer. When I give the div a background color it suddenly works. Check: http://ListAndPlay.com , top left are the controls. The hover won't work in IE, try to add a background color to #buttons and it suddenly works. Quest...

How do I make the background of a component transparent in Flash

How can I make the background of the Button component transparent in actionscript (or remove it completely) ? I'd like to show a Button component with only the text label, no background, no border. ps. I'm using AS2 ...

drawing a string with a transparent background using C# ?

The standard way of g.DrawString creates a gray background. So if overlay another string on the form, part of it appears gray. My question is, is there any way to draw a string with a transparent background? i want to be able to overlay strings, but still be able to see them. ...

Android : transparent view does not manage touchevent correctly

Hi, I want to have a transparent view, above my application. I want to do this just knowing the current activity. I found a way of doing this by adding a new framelayout via the windowManager I m doing this : public static void AddViewAbove(Activity activity) { FrameLayout newLayout = new FrameLayout(activity); WindowManager.La...

IN IE6, how to position transparent PNG using filter?

I have following CSS: background-div: url(/images/top.png) no-repeat top center; and I am using the following filter for IE6: ( Transparent PNG Hack) filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (src='/images/top_arrow.png',sizingMethod='scale'); How can I add the background position (i.e. top center) to the filter...

(win32) How to make an OpenGL rendering context with transparent background?

Rendering contexts usually have a solid color on the background (black or whatever, see the image below): I'm wondering if it's possible to setup a window, with no decorations AND with the transparent background, while allowing me to render OpenGL stuff on it. This would give the illusion that the triangle is floating on the screen. ...