File:  [WindowsNT SDKs] / ntddk / src / print / pscript / patfill.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:31:12 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntddk-nov-1993, HEAD
Microsoft Windows NT Build 511 (DDK SDK) 11-01-1993

//!!! put into resource - kentse.

// The pattern gray table gives the percentage of the
// input color present in the output color.
// A value of 100% produces the original color.
// A value of 0% produces black.

PS_FIX apsfxPatGray[] =
{
    0x00000006,     // .1
    0x0000000C,     // .2
    0x00000013,     // .3
    0x00000019,     // .4
    0x00000026,     // .6 NOTE: no .5
    0x0000002C,     // .7
    0x00000033,     // .8
    0x00000039,     // .9
};

static PSZ apszBase[] = { "/getpsize {pathbbox /pt ed",
"/pr ed /pb ed /pl ed",
"pt pb sub 36 add /ph ed pr pl sub 36 add /pw ed} bd",
"/36grid {35 add cvi 36 idiv 1 sub 36 mul} bd",
"/psize {clip getpsize} bd /rd {round} bd",
"/eopsize {eoclip getpsize} bd /cpt {currentpoint} bd",

"/phoriz {ph pw add 3.6 div cvi 4 add",
"n pl pw sub 36grid pb ph sub 36grid M",
"/pwh {pw ph add dup add} def",
"{pwh 0 rlt cpt []0 sd s M pwh neg 72 15 div rm} repeat} bd",

NULL
};                                                                  

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.