Twain - Getting available capabilities values with vfp

Discussions about image processing and document imaging.
Post Reply
oneuser
Posts: 10
Joined: Wed May 23, 2007 11:12 am

Twain - Getting available capabilities values with vfp

Post by oneuser » Wed May 23, 2007 11:16 am

Hi there,

I need some help from you with the following functions

ALL TwainGetAvailablexxxxxxxx functions
Like TwainGetAvailableBitDepths
Wants a pointer to an array were they can store the data...

I have looked all day to get this done in Visual Foxpro...
But i have NOT found a way to do this.
I cannot pass a pointer to an array to this function.

Have you any idea how I can solve this ?
I hope that you can help me..


Regards.
Last edited by oneuser on Wed May 23, 2007 11:49 am, edited 1 time in total.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Wed May 23, 2007 11:37 am

Hi,

You can download the gdpicturepro.ocx 3.6 pre-release from here:

https://www.gdpicture.com/ressources/betas/


I've added these new methods:

TwainGetAvailableBrightnessCount()
TwainGetAvailableContrastCount()
TwainGetAvailableBitDepthsCount()
TwainGetAvailablePixelTypesCount()
TwainGetAvailableXResolutionsCount()
TwainGetAvailableYResolutionsCount()

TwainGetAvailableBrightnessNo()
TwainGetAvailableContrastNo()
TwainGetAvailableBitDepthNo()
TwainGetAvailablePixelTypeNo()
TwainGetAvailableXResolutionNo()
TwainGetAvailableYResolutionNo()

you can find the documentation here: https://www.gdpicture.com/references/gdp ... index.html


And here a vfp sample to displays the available pixel types:



Code: Select all

PRIVATE nCpt,;
        oGdPicturePro

oGdPicturePro = CREATEOBJECT("gdpicturepro.cgdpicture")

WITH oGdPicturePro  as gdpicturepro.cgdpicture
     IF .TwainOpenDefaultSource()
        nCpt = .TwainGetAvailablePixelTypesCount
        FOR nCpt = 1 TO .TwainGetAvailablePixelTypesCount
            MESSAGEBOX(.TwainGetAvailablePixelTypeNo(nCpt))
        ENDFOR
        .TwainUnloadSourceManager()
     ENDIF 
ENDWITH

Best regards,

Loïc Carrère

User avatar
2basix
Posts: 7
Joined: Wed May 23, 2007 1:23 pm
Location: Netherlands
Contact:

Thnx

Post by 2basix » Wed May 23, 2007 1:25 pm

Very fast and good support, thank you very much..... :lol:

Keep up the good work !

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest