Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2007

Tip: Looking for answers? Try searching our database.

Manipulating images

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steven Spencer (Spinalogic) - 04 Jan 2007 00:29 GMT
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?
Kevin Spencer - 04 Jan 2007 11:36 GMT
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).

Signature

HTH,

Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com

Where there's a Will, there's a William.

> Gday guys,
>
[quoted text clipped - 16 lines]
> Or should we be looking into managed DirectX (DirectDraw) to do the
> manipulations?
Bob Powell [MVP] - 12 Jan 2007 06:20 GMT
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.

Signature

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.

> Gday guys,
>
[quoted text clipped - 16 lines]
> Or should we be looking into managed DirectX (DirectDraw) to do the
> manipulations?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.