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
 How to bring IEVision to crash
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

flatserv

Germany
22 Posts

Posted - Jun 06 2012 :  11:08:26  Show Profile  Reply
I try your example “Inpaint_Selection” and it crash, if I do:

Set the properties:
ImageEnView1.SelectionMaskDepth := 8;
ImageEnView1.SelectionIntensity := 128;

Or simply switch from ImageEnView to ImageEnVect.

fab

1310 Posts

Posted - Jun 06 2012 :  11:25:31  Show Profile  Reply
You have to modify mak.copyFrom, to specify the new bit depth for selection mask.
Modify this code:

mask.copyFrom(ievUINT1, 1, ImageEnView1.SelectionMask.Rowlen, ImageEnView1.SelectionMask.ScanLine[ImageEnView1.SelectionMask.Height-1]);


...to...

mask.copyFrom(ievUINT8, 1, ImageEnView1.SelectionMask.Rowlen, ImageEnView1.SelectionMask.ScanLine[ImageEnView1.SelectionMask.Height-1]);


No problems here replacing TImageEnView with TImageEnVect.
Go to Top of Page

flatserv

Germany
22 Posts

Posted - Jun 06 2012 :  12:57:54  Show Profile  Reply
I'll try it
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: