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: Mon, 30 Jul 2007 13:03:23 +0100,    posted on: microsoft.public.dotnet.framework.drawing        back       

Thread Index
  1    Steve Mowbray


rendering a pixmap on a graphics object GDI+   
Is there any way of efficiently rendering a simple animation thread workarea 
colour indexed pixelmap (8bpp in this case) onto a visible GDI+ graphics 
object.

- animation thread read/write random access to 8-bit pixelmap data.
- display thread read access only to 8-bit pixelmap for visible screen 
update at selected frame rate (10fps - hardware accelerated if possible)

So far I have found that I can use DrawImage(...) however this implies 
working with Image (Bitmap) objects and necessary LockBits/UnlockBits 
overhead in getting direct access to the pixelmap for the animation thread.

In OpenGL I can use the glDrawPixels(...) function without any contention 
between a worker animation thread and the on screen display update thread - 
I was hoping that something similar was available in GDI+.

For info I have tried LockBits-ing the Bitmap at the start of the animation 
and leaving the BitmapData locked indefinitely but this is obviously 
disallowed...

Any suggestions will be greatly appreciated
Thanks
Steve
Date:Mon, 30 Jul 2007 13:03:23 +0100   Author:  

Google
 
Web dotnetnewsgroup.com


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