when setting to color jpg, I get 0kb file

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

Moderator: Alex

Post Reply
quicoli
Posts: 5
Joined: Thu Nov 24, 2011 3:46 pm

when setting to color jpg, I get 0kb file

Post by quicoli » Sat Dec 06, 2014 4:27 am

Friends,

I'm using a Kodak i2600. My scanning is set to memory transfer mode: when I set PixelType to BW or Gray, everything is okay. But, when I set to RGB, the following event is producing an empty file, 0kb file...

Code: Select all

 private void _device_ImageAcquired(object sender, ImageAcquiredEventArgs e)
  {
            var filename ='test.jpg";
            
            if (!e.Image.IsBlank(0.01f))
            {
                e.Image.Save(filename);
            }
}
I don't know what is wrong.... someone could point some direction?

thank you

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

Re: when setting to color jpg, I get 0kb file

Post by Alex » Sat Dec 06, 2014 8:08 am

Hello,

I think you are using the evaluation version of SDK. Evaluation version of SDK does not allow to save RGB image to a JPEG file.

Best regards, Alexander

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest