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
 How to bring IEVision to crash

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
flatserv Posted - Jun 06 2012 : 11:08:26
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.
2   L A T E S T    R E P L I E S    (Newest First)
flatserv Posted - Jun 06 2012 : 12:57:54
I'll try it
fab Posted - Jun 06 2012 : 11:25:31
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.