Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 25th, 2006, 01:39 AM
Authorized User
Join Date: Sep 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to guntank
Default I am interested to mimic Windows Magnifier

My objective is to mimic Windows Magnifier (Accessories|Accessibility|Magnifier.exe).

To make simpler case, instead of magnifying the desktop window, I implement my magnifier for my Image Viewer. I create a custom control named loupe control.
It is a movable loupe control on which the magnified portion will be displayed.

The core of my code lies in Paint event handler of the loupe control as follows

e.Graphics.DrawImage(image, dstRect, srcRect, GraphicsUnit.Pixel);

image: image displayed on the client of Image Viewer main window.
dstRect: rectangle represents ClientRect of the loupe control.
srctRect: rectangle represents portion of image tobe magnified.

The bigger image size the slower rendering will be while moving the loupe.
How to speed up the rendering process while moving the loupe?

I have tried to crop the image before sending it to the loupe control. In this case the loupe will render smaller image. Croping process,however, results in more overhead.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mimic the FORM POST seananderson Classic ASP Professional 8 November 23rd, 2006 05:57 AM
i am interested pokemister C++ Programming 2 March 13th, 2006 02:41 PM
Screen Magnifier blackcaseprgmr C++ Programming 0 November 2nd, 2005 03:52 PM
Image magnifier ramamurthi_c VB How-To 0 January 21st, 2005 09:18 AM
Windows 98 OCX control issues vs Windows XP benoyraj VB How-To 0 May 5th, 2004 08:10 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.