[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    pcxShow()

         Shows a 16 color PCX on the screen

    Syntax:

         pcxShow ( cFile, [lPalette], [nX], [nY] ) -> lError

         cFile    : Name of the PCX file
         lPalette : A logic indicating if we like the PCX palette or the
                    actual one of the system. If it is .T. then prevails
                    the one from the file. If it is .F. the one from the
                    system. By default is .T.
                    This option is very useful for programs like PaintBrush
                    for Windows that destroys palettes.
         nX       : Initial coordinate X where we want to see the PCX.
                    Default value is 0. It may be assigned whichever value
                    between 0 and the number of horizontal pixels of the
                    actual mode. For example, if it is VGA, between 0 and
                    639.
         nY       : Initial coordinate Y where we want to see the PCX.
                    Default value is 0. It may be assigned whichever value
                    between 0 and the number of vertical pixels of the
                    actual mode. For example, if it is VGA, between 0 and
                    479.

    Description:

         The PCX can be any size you want. Forget about the 64 kb
         limitation.

         It only works if a VGA card exists in the system.

         The function does not activate the video mode when entering, nor
         deactivate the video mode when leaving. Nor does it wait for a
         key. This is very useful when you want to show various PCX one
         after the other and you do not want to get text mode between one
         and the other.

         The PCX file can have whichever resolution you want, that is, it
         can be 20x100... Meaning there is no need to use the known
                        resolutions like 640x480 or 640x350.

    Return:

         .T. if it all has gone well or .F. if the file is not found, the
         system does not have a VGA or the PCX format is incorrect.

    Example:

         nOldMode := SetVGA()
         If pcxShow ( "c:\fast\lib\fast1.pcx", .T. 10, 10 )
           Inkey(0)
         EndIf
         VideoMode ( noldmode )

See Also: pcxShow256()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson