transparency

How can I draw tinted translucent images in iPhone SDK?

For the visuals in my iPhone application I'm compositing UIImages in a transparent UIView. I'd like the images to appear in their normal colors sometimes, but under other conditions I want them to be drawn tinted red. This is easy to do with opaque square images, but parts of my images are translucent, and I only want to tint the solid p...

transparent icons on toolbar draw ugly borders

Hi, I'm trying to set transparent icons in a QAction, which is then added to a Menu and a toolbar. I'm styling the application with a style sheet. The icon transparency works, but the icons are being drawn on the toolbar with what looks like a 1px black border on the left and top edges of the icons. Now, all my icons are stored in one...

semi-transparent image on transparent form

Hello, i need to have semi-transparent image (by using alpha blending) drawn on fully transparent form - it means that image will be drawn over form transparent content. Currently image is always drawn over window background color even if window itself is transparent. This is current state, thanks for any help. public Form1() { I...

How do I float a control over the top of an image (using the background of image)

Hi, I have a logo image across the entire top of my wesit page. The logo itself only takes up about one third of the left hand side. The right two thirds of this bar is plain and dark blue in color. I have several links and the user name displayed on the right side and would like to float those over the image. Originally, I had the...

ie7 Png transparency image

PNG image transparency does not work on IE7. It look like this on IE7: http://websitehelp.techgrowthglobal.com/bc%5Fdevelopers/index.html In the column right portion of the body there is a curved image on top-a1 In the center it was the repeat png background and at the bottom was a curve also a3 It doesn't work on IE7. ...

Temporarily see-through wpf application - à la Visual Studio Ctrl for tooltips

Context: I'm working on a WPF application where the user often has to transcribe bits of data manually from other programs. Not having dual monitors, this involves a lot of Alt-tabbing. I figured that it would be quite nice to have the same functionality as in Visual Studio for tooltips - where you can hit Ctrl to render them slightly t...

How to get the current transparent color?

Hello How can I determine what is the transparent color on a form? (The color that a control, for example, will be painted with, if BackColor property will be set to Color.Transparent. The reason I need this is that I need to fill a background of a custom created control, and for many other reasons, I can't just use Color.Transparent. ...

GDI+, using DrawImage to draw a transperancy mask of the source image

Is it possible to draw a transperancy mask of an image (that is, paint all visible pixels with a constant color) using Graphics::DrawImage? I am not looking for manually scanning the image pixel-by-pixel and creating a seperate mask image, I wonder if it's possible to draw one directly from the original image. My guessing is that it sho...

transparent gif help

Hi, I have a website that I need to make some images that are colored, with a 45% opacity, so you can see through to the background. My problem is that for obvious reasons I cannot use a .png. I have used a gif. When I get it on the site, the opacity has read as far as the color, but you cannot see through it. How do I make this happen ...

C# DataGridView - Transparent Image

I am attempting to populate a DataGridView cell with an image. The image is a 32bit png with Alpha Transparency. I can get this image to display properly in a picturebox or a Listview but in the DataGridView the image loses quality. I have tried setting various parts of the control to transparent but nothing seems to work. I import the...

How do I make my form transparent, but what I draw on it not?

I tried setting the opacity of my form to 50%, and then drawing a string on it. It seems that the string I draw on it also has an opacity of 50%. How would I draw a non transparent string , but let the form background show through 50%? Would also be willing to do this in WPF if it is possible, but I would need explicit instructions or a...

Qt: QImage always saves transparent color as black.

How do I save a file with transparency to a JPEG file without Qt making the transparent color black? I know JPEG doesn't support alpha, and the black is probably just a default "0" value for alpha, but black is a horrible default color. It seems like this should be a simple operation, but all of the mask and alpha functions I've tried a...

How can I make a part of the form partially transparent in C#?

I want to make a part of a form semi-transparent, with additional text on that part which is not transparent. How can I accomplish this in C#? ...

How can I make a form transparent according to a PNG image?

So, I have a png file that uses transparency(is actually a circle with gradient effect from black, in the middle, to transparent on the margins). I am putting this on a form using TImage. I am setting TForm1.Color and the TForm1.TransparentColorValue to the same value and TForm1.TransparentColor:=true. Now, when I run the program the gr...

Clearing the alpha channel of an NSImage

It can be done by mallocing a temporary bitmap with 32bits per pixel and then clearing the alpha component with a for loop and and finally turn it back into a NSImage again. I suspect is can be done in a simpler way using a clever combination of NSColor and NSCompositingOperation. Or perhaps the image needs to be composited with itsel...

opacity in ie using absolutely positioned divs not working

I've been banging my head against the wall for a few hours how trying to sort this out. I'm trying to position one div on top of another for the purpose of fading one in on top of the other. The divs will have an image and some other html in them. I cannot get opacity to work in ie8. I've simplified my html as much as possible: <!DOCTYP...

How to read pixel color in a java BufferedImage with transparency

Hi, I am reading pixel color in a BufferedImage as follows: ..... InputStream is = new BufferedInputStream(conn.getInputStream()); BufferedImage image = ImageIO.read(is); int color = image.getGRB(x, y); int red = (colour & 0x00ff0000) >> 16; int green = (colour & 0x0000ff00) >> 8; int blue = colour & 0x000000ff; Now this works f...

Custom-drawn control won't render controls behind it even though it's transparent

I'm currently writing a custom-designed tab control. I created my own control instead of owner-drawing the TabControl because I figured it'd be faster and more flexible. My tab control styles itself after the VS2008 tab control; that is, when a tab is selected, part of that tab is in front of other, unselected tabs. My tab control consi...

Radio Buttons display incorrectly in IE7 but ok in Firefox?

Hi, I have a site setup that is working fine in ie8 and firefox but as you can see here: Is this an issue with some css or a png transparency? Or is this just something with IE7. Thanks in advance :) ...

Visual Basic 2008 Opacity Failure

Hey guys, I have a 2 files here. One is my main form, and the other is a dialog I made. Now I'm trying to get enter code here the dialog to gradually obtain its transparency from a timer which I have on the dialong form: If Me.Opacity = "100" Then Timer1.Stop() Timer1.Enabled = False Else Me....