Manipulating images

  • Thread starter Steven Spencer \(Spinalogic\)
  • Start date
S

Steven Spencer \(Spinalogic\)

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?
 
K

Kevin Spencer

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.
 
B

Bob Powell [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top