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
 TImageEnProc 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
AlphaUniform Posted - May 16 2018 : 07:54:01
Greetings,
am I able to set a rectangle selection to TImageEnProc, so that any applied filter only take affect on the given rectangle?


Can anyone give me a hint?
Thanks very much
Alex
6   L A T E S T    R E P L I E S    (Newest First)
AlphaUniform Posted - May 18 2018 : 01:28:37
Nice

Thanks for the info!
xequte Posted - May 17 2018 : 20:09:47
Hi

I've added this in 8.0.0.

Example:
// Load an image, set center 50% to negative and save
myBitmap := TIEBitmap.Create();
myBitmap.Read( 'D:\Image.jpg' );
with TImageEnProc.CreateFromBitmap( myBitmap ) do
begin
  // Select center area of image
  SelectedRect := Rect( MulDiv( 25, myBitmap.Width, 100 ),
                        MulDiv( 25, myBitmap.Height, 100 ),
                        MulDiv( 75, myBitmap.Width, 100 ),
                        MulDiv( 75, myBitmap.Height, 100 ));
  Selected := True;
  Negative();
  Free;
end;
myBitmap.Write( 'D:\Image_Out.jpg' );
myBitmap.Free;


Nigel
Xequte Software
www.imageen.com
AlphaUniform Posted - May 16 2018 : 10:13:50
Hi,
I have done it now with DrawToTIEBitmap and creating ImageEnProc with either the complete, or the partial bitmap.

Never the less, maybe you can add a SetSelection Function to "ImageEnProc nice to have list" ;)

Best regards
Alex
w2m Posted - May 16 2018 : 09:50:04
I do not know of anyway to set a selection with Proc or IEBitmap. Try creating a TImageEnView in your thread with a nil owner, copy the IEBitmap to TImageEnView, set the selection with TImageEnView, call the proc function, then copy the TImageEnView.IEBitmap to the form you are using.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
AlphaUniform Posted - May 16 2018 : 09:36:08
I have seen the selection of TImageEnView, but I'm using TImageEnProc in a thread with TIEBitmap, but without TImageEnView.
Is there no function in TImageEnProc where I can define a rectangle?

Thanks
Alex
w2m Posted - May 16 2018 : 08:54:46
If you are using TImageEnView, just make a selection then use the proc. Only the selected area will be affected.

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