How to Delete All image

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

Moderator: Alex

Post Reply
Almatrodi
Posts: 12
Joined: Wed Jan 07, 2009 4:23 am

How to Delete All image

Post by Almatrodi » Sun Jan 18, 2009 8:18 am

Hi

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

Thanks

Alex
Site Admin
Posts: 1461
Joined: Thu Jul 10, 2008 2:21 pm

Re: How to Delete All image

Post by Alex » Tue Jan 20, 2009 5:32 pm

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

Almatrodi
Posts: 12
Joined: Wed Jan 07, 2009 4:23 am

Re: How to Delete All image

Post by Almatrodi » Wed Jan 21, 2009 1:43 am

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

Thanks.

Alex
Site Admin
Posts: 1461
Joined: Thu Jul 10, 2008 2:21 pm

Re: How to Delete All image

Post by Alex » Wed Jan 21, 2009 9:16 am

Hello,

You should set it anew. Here is an example:

Code: Select all

VSTwain1.MaxImages = 5
...
VSTwain1.MaxImages = 5 ' buffer will be cleared and all used resources will be freed
...
Best regards, Alexander

Almatrodi
Posts: 12
Joined: Wed Jan 07, 2009 4:23 am

Re: How to Delete All image

Post by Almatrodi » Thu Jan 22, 2009 12:12 pm

Thanks very much.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest