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 »

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: 2305
Joined: Thu Jul 10, 2008 2:21 pm

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

Post by Alex »

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