Loading...

IsBlank function returns TRUE for non blank images.

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

IsBlank function returns TRUE for non blank images.

Postby britnis » Thu Feb 04, 2010 4:27 pm

Hello Loic,

We are facing an issue with the Imaging object of the Gd Picture Pro version 5.12.4.

The function call Imaging1.IsBlank() / Imaging1.IsBlank(99) / Imaging1.IsBlank(98) returns TRUE though the image being scanned has reasonable amount of print on it.

This function Imaging1.IsBlank() returns TRUE for non-blank images when scanned through on the HP LaserJet 3055 All in one scanner.

Could you guide me through this issue. I have added a sample code below:

Code: Select all
    While Imaging1.CreateImageFromTwain(UserControl.hWnd) <> 0
        lImageID = Imaging1.GetNativeImage
        Dim checkBlankfromGDPRO, consolidatedCheck As Boolean
        checkBlankfromGDPRO = Imaging1.IsBlank()
        If consolidatedCheck Then
                 lOgdImgId = Imaging1.closeImage(lImageID)
        Else
             SAVE THE IMAGE TO THE TEMP FOLDER.......
        Endif
    Wend


Regards,
Nirmal Lawrence
britnis
 
Posts: 18
Joined: Tue Sep 02, 2008 12:47 pm

Re: IsBlank function returns TRUE for non blank images.

Postby Loïc » Thu Feb 04, 2010 5:46 pm

Hi,

Could you attach the image on which the engine fails ?

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: IsBlank function returns TRUE for non blank images.

Postby britnis » Fri Feb 05, 2010 7:39 am

Thanks for the quick response, Loic.

I am attaching a copy of the image that is returning TRUE on the IsBlank call when scanning on a HP Scanjet 3055 All In One scanner.

Below is the other options used before performing the scan process:

Code: Select all
Imaging1.TwainSetCurrentResolution (75)
Imaging1.TwainSetCurrentPixelType (TWPT_GRAY)
Imaging1.TwainSetCurrentBitDepth (1)


The requirement is that, images with an affixed photo should be scanned with good clarity and a lesser file size. The output should have a decent clarity on the photo.

Note: The IsBlank function returns FALSE [as expected] with the same image on the same scanner when scanned using Imaging1.TwainSetCurrentResolution (150).

I look forward to your response.

Regards,
Nirmal Lawrence
Attachments
SampleImage.jpg
Image which returns TRUE with IsBlank function.
britnis
 
Posts: 18
Joined: Tue Sep 02, 2008 12:47 pm

Re: IsBlank function returns TRUE for non blank images.

Postby britnis » Tue Feb 23, 2010 6:17 am

Hello Loic,

Any updates on this issue?

Regards.
britnis
 
Posts: 18
Joined: Tue Sep 02, 2008 12:47 pm

Re: IsBlank function returns TRUE for non blank images.

Postby Loïc » Tue Feb 23, 2010 10:23 am

Hi there,

Using the last version the IsBlank method returns FALSE on your image (which is correct). Could you try it ?

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest