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
 selection
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

giancarlo

Italy
65 Posts

Posted - Apr 19 2013 :  02:24:52  Show Profile  Reply
i have to place a simple selection by code to crop...

ImageEnView1.Deselect;
ImageEnView1.IO.LoadFromFile('C:\scan_0001.jpg');
ImageEnView1.Update;

ImageEnView1.Select(100,100,300,300,iespReplace );

why doesn't work ???
i can't see the selection... and even the crop do nothing

ImageEnView1.Proc.CropSel;

thank you all

w2m

USA
1990 Posts

Posted - Apr 19 2013 :  06:49:27  Show Profile  Reply
Perhaps selectionbase is incorrect or you are not showing all the code you used that interacts with selections?

ImageEnView1.SelectionBase := iesbBitmap;

If this does not work create a small demo project that shows the problem and post all of the code here. When I call the code here it works as expected.

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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: