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
 Selection - question

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
graph_man Posted - Apr 10 2017 : 17:30:52
How to select only areas where all pixels are inside selected area?

See example video:
https://www.dropbox.com/s/lxevkx41bsfahep/selection-example.mp4?dl=0
10   L A T E S T    R E P L I E S    (Newest First)
graph_man Posted - Apr 23 2017 : 16:41:03
thanks
xequte Posted - Apr 23 2017 : 15:57:00
Hi

I'm out of the office this week, so I cannot look at the code to confirm the difference. Perhaps your SelectionBitmap1 is not ie1g pixel format.

At any rate, CopyToTIEMask fills the entire mask, so it won't allow you to copy just a portion of the image. To do that use an intermediary TIEBitmap copy the portion to the whole "Selection Bitmap" and then assign the "selection bitmap" to the SelectionMask.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
graph_man Posted - Apr 21 2017 : 15:58:16
My bitmap is smaller than the whole image.

I use

ImageEnView1->CopySelectionToIEBitmap(SelectionBitmap1);
graph_man Posted - Apr 21 2017 : 15:49:21
Why I cannot use

SelectionBitmap1->CopyToTIEMask(ImageEnView1->SelectionMask);

???
xequte Posted - Apr 21 2017 : 15:48:27
Hi

The selection mask should be the same size as the whole image anyway...

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
graph_man Posted - Apr 20 2017 : 06:24:24
In this case corrected selection stretched to the whole image.
xequte Posted - Apr 20 2017 : 02:12:48
How about if you use:

ImageEnView1.SelectionMask.Assign( SelectionBitmap1 );
ImageEnView1.SelectCustom();


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
graph_man Posted - Apr 19 2017 : 19:29:52
- Copying the selection into a bitmap
- Ensuring the bitmap is monochrome
- Filling any parts of the bitmap that touch the sides

All is OK

- Copying the bitmap to the selection mask:

I don't see result after:
ImageEnView1->DeSelect();
SelectionBitmap1->CopyToTIEMask(ImageEnView1->SelectionMask);
ImageEnView1->SelectCustom();

graph_man Posted - Apr 10 2017 : 20:26:24
Thank you.
xequte Posted - Apr 10 2017 : 19:41:49
Hi

That would be cool, but there is no feature for that.

You could probably do it by:
- Copying the selection into a bitmap
- Ensuring the bitmap is monochrome
- Filling any parts of the bitmap that touch the sides
- Copying the bitmap to the selection mask:

https://www.imageen.com/help/TImageEnView.SelectionMask.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com