"ZoomSelection" - immediately after release of mousebutton

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
mange71
Posts: 6
Joined: Thu Aug 04, 2011 3:02 pm

"ZoomSelection" - immediately after release of mousebutton

Post by mange71 » Tue Aug 30, 2011 12:23 pm

Hi,

I was wondering if there is a way to make the "ZoomSelection" to happen immediately on releasing the button instead of when you click in the region.

Regards,
Magnus

Alex
Site Admin
Posts: 1461
Joined: Thu Jul 10, 2008 2:21 pm

Re: "ZoomSelection" - immediately after release of mousebutton

Post by Alex » Wed Aug 31, 2011 3:39 pm

Hello Magnus,

Please download the latest version (4.3.27.9) of VintaSoftImaging.NET SDK and use the class below:

Code: Select all

class MyZoomSelection : ZoomSelection
{
    public MyZoomSelection(ImageViewer viewer)
        : base(viewer)
    {
    }

    protected override void OnMouseUp(System.Windows.Forms.MouseEventArgs e)
    {
        base.OnMouseUp(e);

        Zoom();
    }
}
Best regards, Alexander

mange71
Posts: 6
Joined: Thu Aug 04, 2011 3:02 pm

Re: "ZoomSelection" - immediately after release of mousebutton

Post by mange71 » Wed Aug 31, 2011 4:36 pm

Then i would need the download link to that version. ;)

Alex
Site Admin
Posts: 1461
Joined: Thu Jul 10, 2008 2:21 pm

Re: "ZoomSelection" - immediately after release of mousebutton

Post by Alex » Thu Sep 01, 2011 8:26 am

Hello Magnus,

Please contact support with this problem. :-)

Best regards, Alexander

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests