473,473 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Fast drag zoom control

Hi
I was looking for a component that will enable me to zoom into an image very
easily and quickly. I was hoping there may be something, perhaps part of
VB.NET, that will allow me to drag a box over a selected area and this would
then be displayed at full screen.

Any help on this would be greatly appreciated.
Kind regards, Carl Gilbert
Nov 20 '05 #1
4 1793
Seems like that would just be a matter of stretching the bitmap using GDI+

and then moving the image within the picturebox control so that it showed
the part you were interested in.

Have you tried that?

Should not be too hard I wouldn't think.

Am I missing something?

Shane
"Carl Gilbert" <ca**********@ntlworld.com> wrote in message
news:cM***************@newsfep1-gui.server.ntli.net...
Hi
I was looking for a component that will enable me to zoom into an image very easily and quickly. I was hoping there may be something, perhaps part of
VB.NET, that will allow me to drag a box over a selected area and this would then be displayed at full screen.

Any help on this would be greatly appreciated.
Kind regards, Carl Gilbert

Nov 20 '05 #2
Ok, that sounds like it could be fairly simple.

I have never used GDI+ before so do you know where I can find either
some sample code or any tutorials/books that may help?

Carl
Nov 20 '05 #3
Hi,

http://www.bobpowell.net/faqmain.htm
http://www.vb-helper.com/index_vbnet.html#graphics

Ken
----------------------
"Carl Gilbert" <mr*************@hotmail.com> wrote in message
news:66**************************@posting.google.c om...
Ok, that sounds like it could be fairly simple.

I have never used GDI+ before so do you know where I can find either
some sample code or any tutorials/books that may help?

Carl

Nov 20 '05 #4
Well if you ever used GDI, then there are I guess some similarities in what
is available, but not quite as difficult to use.

Most things based around the graphics object

You always get one in the _paint event

so like
e.graphics.DrawString for example.

There is a Bitmap class that you can stretch an image with.
It has many constructors and seems one of them allows you to pass in an
image(I am not currently working in the IDE)

There is another function that can be used to stretch. I think it was
DrawImage or something similar.
The idea is to draw in memory giving a source and destination and changing
height x width on the destination so that it will be stretched.

I guess with enough math you would have the rubber banding rectangle with
the mouse, they let go, you take the whole image, stretch it, put back in
and calulate where to scroll to so that the right part shows.

There may be an easier way...if anyone knows of one... please post it. I am
fairly new to GDI+ also.

HTH some,

Shane

ps... Ken's links provide a lot of good info.

"Carl Gilbert" <mr*************@hotmail.com> wrote in message
news:66**************************@posting.google.c om...
Ok, that sounds like it could be fairly simple.

I have never used GDI+ before so do you know where I can find either
some sample code or any tutorials/books that may help?

Carl

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: atif | last post by:
Hi, I m new to CSharp.. so may be my preliminary questions look stupid.. but plz help me.. I want to drag controls like buttons or some other user controls over form.. i have set form's...
4
by: Yoshitha | last post by:
I'm developing windows application using c#.net (vs 2003), i've placed several images (picture boxes) in panel control and i want to zoom the panel control so that the images and text which...
0
by: gplana | last post by:
Hi all. I'm trying to create an application with a RichTextBox control in order to let user introduce a formatted text, and then I generate a word2007 .docx document with that text. I added the...
0
by: adubra | last post by:
Hi there, I am using a device context (DC) and a buffer to successfully draw to screen. However, when I update the DC at very high frame rate and drag the frame containing the image very quickly...
1
by: dvsriram | last post by:
Hii , i am creating a control i..e toolstrip in vb.net2005 that contains ,textbox,label,radiobutton ,printer,zoom options of a page .When i click a label it should place at any place on panel .now...
0
by: plloydg | last post by:
hi, I'm fairly new to actionscript - I have created a graph out of a sprite, and got it responding to mouse events (eg onPress, onMouseDown...). when the user triggers a mouseDown on the graph,...
0
by: johot | last post by:
I am currently creating a little photo application. In this application the user is able to zoom in the image and after zooming panning around inside the zoomed image with the mouse. The strange...
7
by: dave | last post by:
Hi All. I've been formulating in my head a simple image editor. I actually started prototyping is some time ago in Java, but am liking Python more and more. My editor will be nowhere near the level...
3
by: Martin | last post by:
I have an application that generates a page with an embedded SVG image in it. The image (the viewport) is intentionally larger than the screen (the browser's window size). I would like to provide...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.