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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Correct selection

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
wesleybobato Posted - Jun 03 2013 : 05:43:14
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.
4   L A T E S T    R E P L I E S    (Newest First)
wesleybobato Posted - Jun 03 2013 : 09:06:16
William Thank you for your attention.
w2m Posted - Jun 03 2013 : 08:58:34

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
wesleybobato Posted - Jun 03 2013 : 08:42:16
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.


w2m Posted - Jun 03 2013 : 06:39:57
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