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
 AV in TIEBitmap.AssignIEVisionImage() on CopyMemory

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
Oribi Posted - Dec 08 2022 : 08:02:05
The AssignIEVisionImage raises an AV on the CopyMemory when used on the same instance used to get the IEVisionImage.

The following code:

  IEBmp := TIEBitmap.Create;
  try
    IEBmp.Create(FImgFileName);
    IEVImg := IEBmp.GetIEVisionImage;
    IEVImg.smooth(ievGAUSSIAN);
    IEBmp.AssignIEVisionImage(IEVImg);
  finally
    IEBmp.Free;
  end;


Worked well in ImageEn 10.3, but raises an AV in 11.4.5.

3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 09 2022 : 13:52:54
Sorry, this is a confusing aspect of GetIEVisionImage.

AssignIEVisionImage() is The *only* needed for methods that change the size of the image. Please see the section "About GetIEVisionImage and AssignIEVisionImage" at:

http://www.imageen.com/help/TIEBitmap.GetIEVisionImage.html

Nigel
Xequte Software
www.imageen.com
Oribi Posted - Dec 09 2022 : 00:53:53
I assume that is now the case for all IEVisionImage operations? I use the IEVisionImage quite extensively to perform operations and reassign the image back to the IEBitmap when done.
xequte Posted - Dec 08 2022 : 18:52:09
Hi

There was a bug in older versions prior to v11.4.5 that required assignIEVisionImage() for smooth. That is no longer needed. Please change your code to:

  IEBmp := TIEBitmap.Create;
  try
    IEBmp.Create(FImgFileName);
    IEVImg := IEBmp.GetIEVisionImage;
    IEVImg.smooth(ievGAUSSIAN);
  finally
    IEBmp.Free;
  end;



Nigel
Xequte Software
www.imageen.com