PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Manipulating images

Reply

Manipulating images

 
Thread Tools Rate Thread
Old 04-01-2007, 12:29 AM   #1
Steven Spencer \(Spinalogic\)
Guest
 
Posts: n/a
Default Manipulating images


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?


  Reply With Quote
Old 04-01-2007, 11:36 AM   #2
Kevin Spencer
Guest
 
Posts: n/a
Default Re: Manipulating images

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



  Reply With Quote
Old 12-01-2007, 06:20 AM   #3
Bob Powell [MVP]
Guest
 
Posts: n/a
Default Re: Manipulating images

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

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off