Loading...

Twain - Getting available capabilities values with vfp

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

Twain - Getting available capabilities values with vfp

Postby 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.
- From esupport message -
oneuser
 
Posts: 10
Joined: Wed May 23, 2007 11:12 am

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

Hi,

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

http://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: http://www.gdpicture.com/references/gdpicturepro/content/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
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Thnx

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

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

Keep up the good work !
--== Keep IT Basic ==--
User avatar
2basix
 
Posts: 7
Joined: Wed May 23, 2007 1:23 pm
Location: Netherlands


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest