"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 »

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: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: "ZoomSelection" - immediately after release of mousebutton

Post by Alex »

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 »

Then i would need the download link to that version. ;)
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: "ZoomSelection" - immediately after release of mousebutton

Post by Alex »

Hello Magnus,

Please contact support with this problem. :-)

Best regards, Alexander
Post Reply