Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Faxual II for CA-Clipper - ripfillrect http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 RipFillRect
 Fill rectangle with gray
------------------------------------------------------------------------------
 Syntax

    RipFillRect(<nLeft>, <nTop>, <nRight>, <nBottom>, <nFill>)

 Parameters

    <nLeft> is the X coordinate of left edge of the rectangle.

    <nTop> is the Y coordinate of top edge of the rectangle.

    <nRight> is the X coordinate of right edge of the rectangle.

    <nBottom> is the Y coordinate of bottom edge of the rectangle.

    <nFill> is the gray value to use to fill the rectangle, from 0 (white)
    to 100 (black).

 Description

    RipFillRect() fills a rectangular area with a gray pattern.  The <nFill>
    parameter controls the density of the pattern.

    Fill Patterns
    ----------------------------------------------------------------------
    <nFill>     Fill percentage
    ----------------------------------------------------------------------
       <  6     White (0%).
     6 - 16     11% gray.
    17 - 27     22% gray.
    28 - 38     33% gray.
    39 - 49     44% gray.
    50 - 60     56% gray.
    61 - 71     67% gray.
    72 - 82     78% gray.
    83 - 93     89% gray.
       > 93     Black (100%).
    ----------------------------------------------------------------------

    If <nTop> >= <nBottom> or <nLeft> >= <nRight>, the box is of zero size
    and nothing is drawn.

    You can draw horizontal or vertical lines on the page with RipFillRect()
    by telling it to draw a very short or skinny rectangle.

 Note

    Fax devices are designed to send images consisting mostly of black and
    white regions.  They become very inefficient when presented with large
    areas of gray.  As an extreme example, a full page of 50% gray could
    take 20 minutes to send to a 2400 BPS fax machine.  Gray fills other
    than pure white or black should be used with restraint.

See Also: RipDrawRect

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson