PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Manipulating images
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Manipulating images
![]() |
Manipulating images |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Gday guys,
We have a need in our application to manipulate around 10 images on the screen at any one time, with the manipulations limited to zooming and transforming. (Vb.net .net 1.1) Currently we have been using GDI Plus to manipulate the images, but specifically when panning images, it has been quite slow when redrawing, resulting in flickering. We have implemented double buffering, but the end result is no flicker, but the refresh rate drops to around 1.5/2 full redraws per second on a modern machine. This is unacceptable. (We only manipulate one image at a time, but need to show up to 10 at once, whilst the doctor manipulates a specific image of interest.) Is there an API that we have missed for panning and zooming large images? Or should we be looking into managed DirectX (DirectDraw) to do the manipulations? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
It is possible that you have missed something in the panning and zooming of
the images. However, your best bet would indeed be to use DirectX for panning and zooming the images, since it uses vector graphics, which provides much better size scalability, and faster drawing (the video card handles the greatest part of the load in its hardware). -- HTH, Kevin Spencer Microsoft MVP Bit Player http://unclechutney.blogspot.com Where there's a Will, there's a William. "Steven Spencer (Spinalogic)" <Spence-Spinalogic@newsgroup.nospam> wrote in message news:%23qdVYd5LHHA.1252@TK2MSFTNGP02.phx.gbl... > Gday guys, > > We have a need in our application to manipulate around 10 images on the > screen at any one time, with the manipulations limited to zooming and > transforming. > > (Vb.net .net 1.1) > > Currently we have been using GDI Plus to manipulate the images, but > specifically when panning images, it has been quite slow when redrawing, > resulting in flickering. We have implemented double buffering, but the > end result is no flicker, but the refresh rate drops to around 1.5/2 full > redraws per second on a modern machine. This is unacceptable. > > (We only manipulate one image at a time, but need to show up to 10 at > once, whilst the doctor manipulates a specific image of interest.) > > Is there an API that we have missed for panning and zooming large images? > Or should we be looking into managed DirectX (DirectDraw) to do the > manipulations? > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
GDI+ doesn't handle large images well.
A control that may help you with this is the ZoomPicBox which is available on my site. It's support code for an article and comes in C# and VB flavours. -- 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. Steven Spencer (Spinalogic) wrote: > Gday guys, > > We have a need in our application to manipulate around 10 images on the > screen at any one time, with the manipulations limited to zooming and > transforming. > > (Vb.net .net 1.1) > > Currently we have been using GDI Plus to manipulate the images, but > specifically when panning images, it has been quite slow when redrawing, > resulting in flickering. We have implemented double buffering, but the end > result is no flicker, but the refresh rate drops to around 1.5/2 full > redraws per second on a modern machine. This is unacceptable. > > (We only manipulate one image at a time, but need to show up to 10 at once, > whilst the doctor manipulates a specific image of interest.) > > Is there an API that we have missed for panning and zooming large images? > Or should we be looking into managed DirectX (DirectDraw) to do the > manipulations? > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

