Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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.
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.