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.
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: