• PageScript PsBitMap()

    From marco.boeri.63@gmail.com@21:1/5 to All on Fri Oct 13 09:58:41 2017
    Hi,
    I've Pagescript 4.2.0 (the last version of PS for Clipper).
    In a old software of mine I use PSBitmap() to print a logo on the top of a document.
    Reading the documentation I've found that omitting 3rd and 4th parameter, I can print the bitmap file in its original size, and that providing the nTransColor (6th) it's possible to have a transparent bmp.
    I've tried several times with different bmp but the result is wrong: the printed bmp is very little (like a 32x32 icon) and it's not transparent using no matter what color.
    There is anyone that has successfully used this function?


    Many thank,
    Marco

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dlzc@21:1/5 to marco.b...@gmail.com on Fri Oct 13 12:05:30 2017
    Dear marco.b...:

    On Friday, October 13, 2017 at 9:58:42 AM UTC-7, marco.b...@gmail.com wrote:
    Hi,
    I've Pagescript 4.2.0 (the last version of PS for Clipper).
    In a old software of mine I use PSBitmap() to print a logo
    on the top of a document.

    Reading the documentation I've found that omitting 3rd and
    4th parameter, I can print the bitmap file in its original
    size, and that providing the nTransColor (6th) it's possible
    to have a transparent bmp.

    I've tried several times with different bmp but the result
    is wrong: the printed bmp is very little (like a 32x32
    icon) and it's not transparent using no matter what color.
    There is anyone that has successfully used this function?

    So can you:
    - verify that you are calling this function with the "path\filename" of the full size bitmap;
    - show us how you are calling this function?

    What happens is you supply reasonable numbers for parameter #3 and #4?

    David A. Smith

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From marco.boeri.63@gmail.com@21:1/5 to All on Fri Oct 13 12:36:26 2017
    Hi David,
    usually I'm calling the function this way
    PSBitmap( nT, nL, nT + 22, 0, aLogo[ 1 ] )
    3rd parameter is 0 and the image is scaled (according to docs) and printed, while this way

    PSBitmap( nT, nL, , , aLogo[ 1 ] )

    doesn't work. The aLogo[1] contains the full path\fillname of the full size image. I've doubled cheched all the images properties and all of them are full size images.

    Thanks,
    Marco



    Il giorno venerdì 13 ottobre 2017 21:05:31 UTC+2, dlzc ha scritto:
    Dear marco.b...:

    On Friday, October 13, 2017 at 9:58:42 AM UTC-7, marco.b...@gmail.com wrote:
    Hi,
    I've Pagescript 4.2.0 (the last version of PS for Clipper).
    In a old software of mine I use PSBitmap() to print a logo
    on the top of a document.

    Reading the documentation I've found that omitting 3rd and
    4th parameter, I can print the bitmap file in its original
    size, and that providing the nTransColor (6th) it's possible
    to have a transparent bmp.

    I've tried several times with different bmp but the result
    is wrong: the printed bmp is very little (like a 32x32
    icon) and it's not transparent using no matter what color.
    There is anyone that has successfully used this function?

    So can you:
    - verify that you are calling this function with the "path\filename" of the full size bitmap;
    - show us how you are calling this function?

    What happens is you supply reasonable numbers for parameter #3 and #4?

    David A. Smith

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From marco.boeri.63@gmail.com@21:1/5 to All on Mon Oct 23 10:59:06 2017
    Hi all,
    sorry to bother....
    To find a solution I've tried to recompile the demo program that comes with Pagescript for Clipper. I never done it in the past because an exe was provided with the libs. In order to see why I get this strange result I came to decision to recompile a
    source that wasn't touched by me (maybe there are errors in my code that i'm not able to find). The demo file is compiled, then linked with standard libraries and pscript lib, oslib and __wait_b.obj file. The output is 40kb smaller than the original (!)
    and when launched returns immediately to command prompt. I'm not able to find the reason of a such behaviour. Any help?
    marco

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dlzc@21:1/5 to marco.b...@gmail.com on Mon Oct 23 13:03:16 2017
    Dear marco.b...:

    On Monday, October 23, 2017 at 10:59:09 AM UTC-7, marco.b...@gmail.com wrote:
    Hi all,
    sorry to bother....
    To find a solution I've tried to recompile the demo
    program that comes with Pagescript for Clipper. I never
    done it in the past because an exe was provided with
    the libs. In order to see why I get this strange result
    I came to decision to recompile a source that wasn't
    touched by me (maybe there are errors in my code that
    i'm not able to find). The demo file is compiled, then
    linked with standard libraries and pscript lib, oslib
    and __wait_b.obj file. The output is 40kb smaller than
    the original (!) and when launched returns immediately
    to command prompt. I'm not able to find the reason of
    a such behaviour. Any help?

    What are the contents of the error log file, after running it?

    If you open a command.com (not cmd.exe) window, and execute either program, what error message is displayed on the screen?

    I suggest that this is a sign that your code-base has come to the end of its life, and it is time to either:
    - migrate it to (x)Harbour, or X#, or
    - recode in a current language that you are familiar with, just using your old code for "business logic".

    David A. Smith

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)