VintaSoft Twain .NET SDK Discussions

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Board index < VintaSoft Twain < VintaSoft Twain .NET SDK Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

How to Delete All image



How to Delete All image

Post by Almatrodi »

Hi

I know that VSTwain1.DeleteImage(imageNum) will delete only one image. So, how to delete all?

Thanks


Re: How to Delete All image

Post by Alex »

Hello,

You must reinitialize value of the MaxImages property if you want to clear the images buffer and release all used memory.
Please read description of the MaxImages property in documentation.

Best regards, Alexander


Re: How to Delete All image

Post by Almatrodi »

I read it. But I don't know how to reinitialize it.

Thanks.


Re: How to Delete All image

Post by Alex »

Hello,

You should set it anew. Here is an example:
VSTwain1.MaxImages = 5
...
VSTwain1.MaxImages = 5 ' buffer will be cleared and all used resources will be freed
...
Best regards, Alexander


Re: How to Delete All image

Post by Almatrodi »

Thanks very much.


Page 1 from 1: 1