DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 19 Jul 2007 22:22:02 -0700,    posted on: microsoft.public.dotnet.framework.drawing        back       

Thread Index
  1    ohs
          2    Bob Powell [MVP]


Transparency Woes   
I need to animate graphics over a large.jpg set as the forms background.

Reloading the image each time the animation moves is not an option as it 
takes too long.

I thought drawing on a transparent panel would be the answer indeed it works 
with a non transparent panel but not with a transparent one.

The drawing code uses CreateGraphics in the mousemove event.  With a the 
background color set to transparent the event isn't even triggered !?

Also if i use graphics.clear(color.transparent) then panel turns black
 
Any ideas ?
Date:Thu, 19 Jul 2007 22:22:02 -0700   Author:  

Re: Transparency Woes   
Read the GDI+ FAQ on:
	How to use CreateGraphics
	How to respect event driven systems
	How to create retained mode graphics displays


-- 
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





ohs wrote:

> I need to animate graphics over a large.jpg set as the forms background.
> 
> Reloading the image each time the animation moves is not an option as it 
> takes too long.
> 
> I thought drawing on a transparent panel would be the answer indeed it works 
> with a non transparent panel but not with a transparent one.
> 
> The drawing code uses CreateGraphics in the mousemove event.  With a the 
> background color set to transparent the event isn't even triggered !?
> 
> Also if i use graphics.clear(color.transparent) then panel turns black
>  
> Any ideas ?
> 
> 
Date:Thu, 26 Jul 2007 23:02:46 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us