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
 Assign function-results only to a selected region
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

harry stahl

Germany
62 Posts

Posted - Jul 15 2016 :  12:03:52  Show Profile  Reply
E.G. I have selected with the Wizzard only a part of an image. Now I want that the processing results of the function "Proc.IntensityRGBall" (or any other proc.function) is assigend only to the selected parts of the image.

How can I do that?

By the way, ImageEn is realy great.

HS

w2m

USA
1990 Posts

Posted - Jul 15 2016 :  12:16:33  Show Profile  Reply
Any ImageEnProc procedure applies the "effect" to only the selected rectangle if there is a selection and if there is no selection the "effect" is applied to the entire image.

This is the way ImageEn was designed to operate, so if you do not want to apply the effect to the selection then call ImageEnView.DeSelect (to remove the selection) before calling the procedure.

There is no other way to achieve what you described that I am aware of.

Do you like my ImageEn EBook?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

harry stahl

Germany
62 Posts

Posted - Jul 15 2016 :  12:43:03  Show Profile  Reply
Hello Bill,

thank you for your reply. That makes it much easier than I have thought. So I can process the needed functions directly to my ImageEnview.

Yes, I like your book, it is very helpfull!

HS
Go to Top of Page

harry stahl

Germany
62 Posts

Posted - Jul 15 2016 :  13:02:58  Show Profile  Reply
Perhaps one additional question:

When I use

OK := ImageEnView1.Proc.DoPreviews (pe, True, 800, 600);

Then the effect in the peview-window of the dialog is processed to the whole image, not only to selected part of the image.

At the end the changings are assigned only to the selected area, but it would be fine to see it also in the selected parts in the preview.

Is there a way to reach that?

HS
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jul 15 2016 :  13:16:06  Show Profile  Reply
I do not think you can apply the preview to only the selected area with DoPreviews because a selection is not possible in the "Result" image preview.

You can achieve this by developing your own dialog to do this where a selection is possible in the result image. You then would use the other ImageEnView1.Proc functions to apply the function you are looking for.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: