Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Escape! V3.0 - <b>hpreverse()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
hpReverse()

Print a string with a reversed effect (i.e. white on black)


Syntax

hpReverse(<cString> [,<nShade> [,<nThickness>])


Parameters

<cString>
The text that is to be reversed.

<nShade>
The percent of gray shading to use as the background.
There are eight shading levels.  To specify a shade use
any value from 1 to 100.  If omitted, <nShade> will
default to 100.  See "Appendix B - Shades and Fill
Patterns" for a description of the different shading levels.

<nThickness>
The amount to extend the background above and below
the text.  This number is specified in dots.  There are
300 dots per inch.


Returns

<c>
Reversed string.


Remarks

Use hpReverse() anytime you desire reversed type in your printouts.
Using hpReverse() is one of the quickest and simplest ways to improve
the look and readibility of any printout.  hpReverse() is great for forms
and column headings for reports.


Support By

HP Laserjet Series IIIP, III, IIID, IIIsi, and other HP printers supporting
HPPCL5.


Example

hpConfig('LETTER','P',1,'III')
hpSetFont('UNIVERS','I','14')
@ 1,0 SAY hpReverse('This Text is reversed', 100)
?? hpReverse('So is this', 60)
hpAtSay(10, 10, hpReverse('And even this!', 80))

To print a string with a wide reversed background, such as a
background that extends 1/2" above and below the string, specify
<nThickness>.

?? hpReverse('Reversed w/ wide background', 100, 150)

See Also: hpPattern() hpShade() hpShadow()

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