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

Logo

Russia
6 Posts

Posted - Jan 03 2013 :  13:43:07  Show Profile  Reply
1. I added in a demo Layers sample button to activate the Select function.

ImageEnView1.SetLayersBoxStyle (psSolid);
ImageEnView1.SetLayersGripStyle (clBlack, clWhite, bsSolid, 5, iegsBox);
Imageenview1.MouseInteract: = [miSelect]; / / go for rectangular area

However, the program selects a square rather than a rectangle (attachment).

How to select a rectangle.

2. How to select multiple pictures in ImageEnView for preview and printing.

Logo

w2m

USA
1990 Posts

Posted - Jan 03 2013 :  15:12:36  Show Profile  Reply
1. You set the layers grip stype not the selection grip style:
ImageEnView1.SetLayersGripStyle (clBlack, clWhite, bsSolid, 5, iegsBox);

Use SetSelectionGripStyle to set the selectio grip style instead:
ImageEnView1.SetSelectionGripStyle(clWhite, clWhite, bsSolid, 5, true, iegsBox);


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

Logo

Russia
6 Posts

Posted - Jan 06 2013 :  16:37:54  Show Profile  Reply
1. Doesn't work
I posted
//ImageEnView1.SetLayersBoxStyle(psSolid);
//ImageEnView1.SetLayersGripStyle(clBlack, clWhite, bsSolid, 5, iegsBox);
ImageEnView1.SetSelectionGripStyle(clWhite, clWhite, bsSolid, 5, true, iegsBox);
Imageenview1.MouseInteract := [miSelect]; //go for rectangular area

any idea?

2. I am using the CROP but it increases my image after cropping. How take a picture as it is cut?
Logo
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jan 06 2013 :  17:49:49  Show Profile  Reply
1. What does not work?
You can only select a square because CheckBox9 (Aspect Ratio) is checked by default. Uncheck the Aspect Ratio checkbox then make a selection... you will be able to select a rectangle then.

2. I am using the CROP but it increases my image after cropping. How take a picture as it is cut?
What do you mean? It is impossible that your image will be larger after cropping. Are you using ImageEnView1.Proc.CropSel?

In the layers demo add two buttons:
procedure Tfmain.Select1Click(Sender: TObject);
begin
  ImageEnView1.SetSelectionGripStyle(clWhite, clWhite, bsSolid, 5, true, iegsBox);
  ImageEnView1.MouseInteract := [miSelect];
end;
procedure Tfmain.Crop1Click(Sender: TObject);
begin
  ImageEnView1.Proc.CropSel;
  ImageEnView1.Update;
end;


Then when running the application uncheck the Aspect Ratio checkbox, then select the Select1 button, make a rectangular selection with the mouse, then select the Crop1 button.

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

Logo

Russia
6 Posts

Posted - Jan 07 2013 :  03:57:50  Show Profile  Reply
Thanks! It works.

Logo
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: