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
 GetImageToStream and TImageEnMView

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
Gubben Posted - Mar 01 2016 : 22:20:14
Is there a change in GetImageToStream in Version 6.2.2?

I get an Access Violation error.

Same code don't give error i previous versions of ImageEn.

Regards
Ole
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 02 2016 : 16:37:56
Hi Ole

I get no error with this code.

Does it only do it with a specific set of images? If so, please post the image that causes problems. Otherwise can you send a small demo and images that reproduce the issue.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Gubben Posted - Mar 02 2016 : 13:05:24
Hi Nigel

for i:=0 to ImageEnMView.imagecount-1 do
  begin

    ms:=TMemorystream.create;

    try

      ImageEnMView.MIO.Params[i].TIFF_Compression:=ioTIFF_JPEG;
      ImageEnMView.MIO.Params[i].BitsPerSample:=2;

      ImageEnMView.GetImageToStream(i,ms,iotiff);

...
...


Strange thing is, if I save only one image there is no error, several images gives an error.

I have reinstalled version 6.2.1 and my code executes with no error again.

Ole
xequte Posted - Mar 02 2016 : 02:56:36
Hi Ole

That method has not changed for a while. What version were you using previously.

What is your code?

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