transparency

Silverlight: Adding transparency to images

Hi there, I hope someone can help us. We’re trying to put together an image editor, with similar functionality to Photoshop in Silverlight (but nowhere near as intricate). We’ve hit a weird problem when it comes to creating layers (several independent images in a z-index stack). Layering images on top of each other seems fine, but we wan...

How to make transparent gradient?

I have the following gradient: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"&gt; <gradient android:startColor="#ECECEC" android:centerColor="#F6F6F4" android:endColor="#F8F8F6" android:angle="90" android:d...

Windows Form Custom Panel with Transparent Child Issue

Hi all, I've created a custom panel (inherited from Panel) that override OnPaint method to paint the inner rectangle with LinearGradientBrush. public void PaintPanel() { // Re-calculate the CalculatePanelHeight(); Graphics _g = this.CreateGraphics(); Point _startPoint = new Point(0, m_TopAreaHeight)...

wpf - transparent MainWindow and issues with DragMove "Can only call DragMove when primary mouse button is down."

I have a wpf project which uses transparent windows and I share this transparent window styling for my dialog windows and my mainwindow. I am getting an error on my DragMove() event of my MainWindow AFTER I close a dialog window that uses the same window style. To make this even more strange this exception only occurs when I handle a mo...

Output PNG images with transparency in PHP

How do you correctly output PNG images with PHP so their shading, and other transparent effects don't fail. seems to be outputting as ...is there a way so this doesn't happen? I merged two images together. <?php // Create image instances $dest = imagecreatefrompng('vinyl.png'); $src = imagecreatefromjpeg('cover2.jpg'); // Copy ...

Android : acces to Canvas without inheritance

Hi all, I want to draw in a view/layout, but I don't want to have to inherit from Layout, ( in order to have the onDispatch(Canvas canvas) method). I want to draw bitmap over my main application, but without losing focus (so i cant run an activity to draw on screen). I had a solution that was working but I had to inherit from LinearLayou...

Delphi 6 : How to create a Bitmap with TextOut that has an Alpha channel?

I'll describe my overall goal in case the question I asked isn't in the best form to get the answer I'm looking for. I have a sphere of words or "word ball" that spins around the X axis. As words spin to the back (Z coordinate goes from -1 to 1, front to back), I intend to change the size and the opacity of each word so that words in "...

WMF transparency in IE8, white becomes transparent

Greetings, I am trying to display WMF and EMF images within IE8. The picture is rendered, but sadly all of the white parts in the picture becomes transparent. I am not talking about the background, and I do not want a non-alpha image. I specifically colored a few fields of my images white, but they are incorrectly rendered in IE8. When v...

Ruby: Find non-transparent PNG and convert into JPG

What is the smartest way to find out if a PNG has transparency or not in Ruby? Is it OK if I just check if there's an alpha-channel? If yes: How do I check for an alpha-channel? I'm writing a script that will convert all PNGs without transparency into smaller JPGs. Thanks a lot for your help! ...

opacity propagation

Hi, I've got a problem. I want a transparant background for the content div. But not all content in it. I can't get this working: <div class="notTransparant"> <div class="transparant"></div> content </div> Is there another work around?? ...

ANDROID: Question regarding overlaying a transparent bar to make layout more aesthetic...

How would I go about putting a transparent bar along the top of a scrollview so that when the text scrolls up it kind of fades out towards the top? I am talking about the kind of thing that the Facebook and NFL mobile apps use. I think it just makes the whole design look nicer and I was wondering how I could implement this. Thanks for...

Absolute positioned link on top of Flash doesn't work in IE

Hi guys, I'm building a website using YouTube's chromeless player, but I'm facing an IE bug. I put a mask on the video as the client wanted it to be a hand drawn TV, so right now I have a transparent PNG sitting on top of the actual flash object so I'm able to see the video but with a nice frame around it. I also managed to put a play b...

PHP: Merging images into an alpha translucent image with GD

I'm trying to create an image with varying level of transparency, using GD. But I can get only fully transparent or fully opaque pixels in the image. What I want to get:                                                      What I actually get:                                                                        Here's a piece of t...

Creating a transparent flame

Hello, I would like to take a video of a flame, close up, and be able to show it on any background (where the background is seen through the flame). Ideally the flame animation (say 60 frames at 15 frames a second) would be alpha transparent png that I could lay over another image. My question is how would I make those images? I could f...

Visual Studio 2010 - Semi-Transparent Floating Windows

Is it possible to make floating windows in Visual Studio 2010 semi-transparent? I would like to be able to float an editor window and reduce the alpha level on it. Could this functionality be created with an extension that modifies the stock editor window? If not an extension, are there decent third party applications which would be cap...

Semi-transparent PictureBox (C# Windows Forms Application)

Hey All, I have searched and searched, and could only find very, very lenghy VB articles on this. Is there any way at all, in C#, to make a picturebox semi-transparent so that you can actually see through the PictureBox and see what's behind it? Thanks Any help at all is appreciated. ...

Problem with PNG transparent + Opacity on ie7 and ie8

Hello everybody, I am developing a project that uses the PNG transparent and Opacity but, the area has a surplus in IE7 and IE8 instead of being transparent, it is black, can someone help me? print of area [http://unistudio.com.br/clientes/transparent.jpg] Thanks ...

Rotate an image using Javascript

First off, I am currently using JQuery so JQuery solutions viable. I want to rotate an image by a dynamic X degrees which is calculated every sec. Now I had this working perfectly using this JqueryRotate plugin The image is rotated perfectly every sec. But I am trying something a little more complicated now. I want to rotate 4 tra...

Help fixing the image library.

Hi, I have a problem with an image library. I think I know the problem but I know very little about images and was hoping that someone could tell me what precisely is going wrong. What I am trying to do is resize a .png and preserve the transparency. When I resize and save a .png image it looses its transparency and turns black. I bel...

SetLayeredWindowAttributes not working on Windows 7

I am using SetLayeredWindowAttributer to make a particular color of layered window transparent. This works fine on Windows XP,VISTA . But when I use the same on Windows 7 its not working. SetLayeredWindowAttributes(hWnd, RGB(0xff,0xff,0xff), 0, LWA_COLORKEY); When I use LWA_ALPHA then also it works. Problem is that I am not able to...