ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Correct selection
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

wesleybobato

Brazil
367 Posts

Posted - Jun 03 2013 :  05:43:14  Show Profile  Reply
Hello William May I Help Make the Right Selection Form for I Step one fixed value, and when one of the User Image Zoom in the Times the value passes the Image Size.

ImageEnVect1.Select (ImageEnVect1.Bitmap.Width, ImageEnVect1.Bitmap.Height, 0, 0);

Or When the Zoom It is less selection does not work correctly when I move well

ImageEnVect1.Select (2000, 2000, 0, 0);
It works but it is not always the correct way

can I help?

Thank you friend.

w2m

USA
1990 Posts

Posted - Jun 03 2013 :  06:39:57  Show Profile  Reply
Sorry Wesley. I do not understand what the problem is, but maybe the problem is SelectionBase. What is the value of ImageEnVect.Selection Base. Look up SelectionBase in the help file.

// I want to select a 100 pixel square in the top left corner of the bitmap
ImageEnView1.SelectionBase := iesbBitmap;
ImageEnView1.Select(0,0,100,100);

// I want to select a 100 pixel square that is displayed in the top left corner of the ImageEnView window
ImageEnView1.SelectionBase := iesbClientArea;
ImageEnView1.Select(0,0,100,100);


Note: When ImageEnView1.Zoom=100, ImageEnView1.ViewX=0 and ImageEnView1.ViewY=0, then both the preceding examples will provide the same result.

Try setting SelectionBase to see if that helps resolve the problem.

William Miller
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jun 03 2013 :  08:42:16  Show Profile  Reply
Hello William Thanks for your attention.
I would like to select the entire image, not just a part of the picture,
Can you help?

Good Afternoon Thank you.


Go to Top of Page

w2m

USA
1990 Posts

Posted - Jun 03 2013 :  08:58:34  Show Profile  Reply

ImageEnVect1.SelectionBase := iesbClientArea;
ImageEnView1.Select(ImageEnVect1.ViewX, ImageEnVect1.ViewY, ImageEnVect1.XBmp2Scr(ImageEnVect1.Bitmap.Width), ImageEnVect1.YBmp2Scr(ImageEnVect1.Bitmap.Height));

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jun 03 2013 :  09:06:16  Show Profile  Reply
William Thank you for your attention.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: