transparency

php resize script doesn't work for transparent gif's

How Can I get this working for transparent gif's and png's? function resizeImage($image,$newImage,$target_width,$target_height, $type="") { if (is_file($image)) { if($type == ".gif"){ $image_org=@imagecreatefromgif($image); }else{ $image_org=@imagecreatefromjpeg($image); } if ($image_org) { list($w,$h,$type,$attr) = ge...

Why does resizing a png image lose transparency?

I am trying to resize an image as follows. I return the resized image into byte[] so that I can store it in database. The transparency of png image is lost. Please help to make this better. private byte[] GetThumbNail(string imageFile, Stream imageStream, int imageLen) { try { Image.GetThumbnailImageAbort imageCallBack = ...

XAML - Text over semi-transparent background

This must be so simple but I can't do it: if I put a textblock in a container and make the container opacity < 1, the text inherits that opacity, no matter whether I try to override it in the textblock. How can I keep the text 100% opacity while in a semii-transparent container? <Grid x:Name="LayoutRoot"> <Border Background="red" O...

Create a transparent hole inside a window's background - WPF

I have a window with these values: WindowState="Maximized" AllowsTransparency="True" Opacity="0.5" WindowStyle="None" This window is coming on top of other window (as a pop-up) with content on it on a specific location. I have a new requirement. This window have to show a rectangle area from the window below. In other words, i have t...

mouse over transparency in Qt

I am trying to create an app in Qt/C++ with Qt4.5 and want the any active windows to change opacity on a mouseover event... As i understand it, there is no explicit mouseover event in Qt. However, I got rudimentary functioning by reimplementing QWidget's mousemoveevent() in the class that declares my mainwindow. But the mainwindow's mo...

Transparent Winform with image

I have an image (PNG file) that has an alpha channel that is set to 50% opaque. When I try to draw the image on a form that has the TransparencyKey set to white, and the backcolor set to white I expect the image to be drawn 50% see-through. However, it is being blended with the forms backcolor first and as a result it is completely opaqu...

WPF - Translucent application

My goal: Similarly the Intellisense dropdown in Visual Studio 2008, when the user presses CTRL, I want the entire application to become 40% opaque. How can I do that? I want to use the regular window chrome, so my WindowStyle cannot be "None". Thanks! ...

WPF - How to capture when CTRL+SHIFT are pressed down?

When the user clicks left CTRL+ left SHIFT I want to make the entire application translucent (like VS2008's intellisense drop-down). If I write my code on the KeyUp event I can capture both keys being pressed, but the transparency effect should only be active while the keys are pressed. When they are release the opacity should go back to...

Generating icons for iPhone UITabBar

I’ve been busy working on the graphics for my iPhone application. I started working on generating icons for my UITabBar and ran into lots of problems. How do you create these icons? I created this solution: http://www.nailrails.com/?p=46 Are there any shortcomings to this approach? It seemed to work for the few icons I created... ...

How to use semi-transparent png images in IE6

How can I use semi-transparent png images in IE6? ...

How do I make a CMFCToolBar recognize image masks?

I have a CMFCToolBar-derived class and an insance thereof is the member of a CDockablePane-derived class. I looked at the VisualStudioDemo sample to see how it's done and have this so far: int CMyPane::OnCreate(LPCREATESTRUCT lpCreateStruct) { // Removed all "return -1 on error" code for better readability CDockablePane::OnCre...

Stacking Controls (Winforms C#) (Transparent)

I have been asked to write a GUI that will allow objects to be stacked inside a container. The user will be viewing the boxes from a top down view point. They also would like to be able to see what is stacked inside. My first thought to solve this was transparency. I have read some of the posts on transparency, however I didn't find any ...

Add an image with transparency to Crystal Reports

Is it really true that Crystal Reports does not support images that have transparency? We are using it at work and the guy that does Crystal Reports told me it doesn't support transparency. I couldn't believe it so I've spent the last 20 minutes googling and think he might be right. This seems absolutely incredible in this day and age....

How to paint transparent areas for child controls?

I have a CTabCtrl subclass which I'm trying overriding WM_PAINT to perform custom drawing. The only problem is, when I change the selected tab, I get artifacts left on the dialog where the old paint code hasn't been erased before the new code is painted on top. (The standard tab controls have the selected tab appear 2 pixels bigger than ...

Button background transparency using Win32 and Visual Styles

Edit: If anyone's tried this in win32 before, am I going in the right direction by using DrawThemeBackground()? I'v recently enabled Visual Styles using a manifest for version 6 of ComCtl32.dll. Example of Visual Styles in Win32: Visual Styles The buttons look great, but I can't figure out how to make the background around the buttons...

Splash-screen with alpha channels transparency/opacity in WinForms

How to implement a splash-screen using an image with alpha channels transparency/opacity in WinForms? ...

C# Winforms Transparent Control allowing Clickthrough

I have a Winforms control that starts off completely transparent, but then lines are drawn on it for stuff. I want mouse events to completely ignore the control and instead go to the stuff (buttons and all that junk) below. Is there any way to do this? P/Invoking stuff would be fine, by the way. ...

Transparent Checkbox in Custom Control Using C#

Hello - I have created a custom control that gets highlighted when the mouse hovers over it. The custom control also has a checkbox. When the mouse goes over the checkbox, the highlighting of the custom control does not occur. I've tried using WS_EX_TRANSPARENT on the checkbox but it isn't working for me. int cbStyle = GetWi...

Google-charts: Transparency not working?

Hi all, I'm trying to make a google-chart with transparency, but it seems not to work. It just draws a solid white background. Does anybody succeded with transparency? Am I doing something wrong? Thanks in advance! Info about google charts: solid fill Test URL: Google-charts example ...

Partial transparency with C# .NET 3.5 WinForms?

I'm making a .NET 3.5 app with a form that draws a partially transparent black background. I'm overriding OnPaintBackground to accomplish this: protected override void OnPaintBackground( PaintEventArgs e ) { using ( Brush brush = new SolidBrush( Color.FromArgb( 155, Color.Black ) ) ) { e.Graphics.FillRectangle( brush, e....