📄 risc8.ps
字号:
/val 255 def
/ws cfs
/im cfs
/val 0 def
/bs cfs
/cs cfs
} bind def
400 ms
/ip {
is
0
cf cs readline pop
{ ic exch get exec
add
} forall
pop
} bind def
/rip {
bis ris copy pop
is
0
cf cs readline pop
{ ic exch get exec
add
} forall
pop pop
ris gis copy pop
dup is exch
cf cs readline pop
{ ic exch get exec
add
} forall
pop pop
gis bis copy pop
dup add is exch
cf cs readline pop
{ ic exch get exec
add
} forall
pop
} bind def
/rip4 {
kis cis copy pop
is
0
cf cs readline pop
{ ic exch get exec
add
} forall
pop pop
cis mis copy pop
dup is exch
cf cs readline pop
{ ic exch get exec
add
} forall
pop pop
mis yis copy pop
dup dup add is exch
cf cs readline pop
{ ic exch get exec
add
} forall
pop pop
yis kis copy pop
3 mul is exch
cf cs readline pop
{ ic exch get exec
add
} forall
pop
} bind def
/wh {
/len exch def
/pos exch def
ws 0 len getinterval im pos len getinterval copy pop
pos len
} bind def
/bl {
/len exch def
/pos exch def
bs 0 len getinterval im pos len getinterval copy pop
pos len
} bind def
/s1 1 string def
/fl {
/len exch def
/pos exch def
/val cf s1 readhexstring pop 0 get def
pos 1 pos len add 1 sub {im exch val put} for
pos len
} bind def
/hx {
3 copy getinterval
cf exch readhexstring pop pop
} bind def
/wbytes {
dup dup
8 gt { pop 8 idiv mul }
{ 8 eq {pop} {1 eq {7 add 8 idiv} {3 add 4 idiv} ifelse} ifelse } ifelse
} bind def
/BEGINBITMAPBWc {
1 {} COMMONBITMAPc
} bind def
/BEGINBITMAPGRAYc {
8 {} COMMONBITMAPc
} bind def
/BEGINBITMAP2BITc {
2 {} COMMONBITMAPc
} bind def
/COMMONBITMAPc {
/cvtProc exch def
/depth exch def
gsave
3 index 2 div add exch
4 index 2 div add exch
translate
rotate
1 index 2 div neg
1 index 2 div neg
translate
scale
/height exch def /width exch def
/lb width depth wbytes def
sl lb lt {lb ms} if
/bitmapsave save def
cvtProc
/is im 0 lb getinterval def
ws 0 lb getinterval is copy pop
/cf currentfile def
width height depth [width 0 0 height neg 0 height]
{ip} image
bitmapsave restore
grestore
} bind def
/BEGINBITMAPBW {
1 {} COMMONBITMAP
} bind def
/BEGINBITMAPGRAY {
8 {} COMMONBITMAP
} bind def
/BEGINBITMAP2BIT {
2 {} COMMONBITMAP
} bind def
/COMMONBITMAP {
/cvtProc exch def
/depth exch def
gsave
3 index 2 div add exch
4 index 2 div add exch
translate
rotate
1 index 2 div neg
1 index 2 div neg
translate
scale
/height exch def /width exch def
/bitmapsave save def
cvtProc
/is width depth wbytes string def
/cf currentfile def
width height depth [width 0 0 height neg 0 height]
{cf is readhexstring pop} image
bitmapsave restore
grestore
} bind def
/ngrayt 256 array def
/nredt 256 array def
/nbluet 256 array def
/ngreent 256 array def
fMLevel1 {
/colorsetup {
currentcolortransfer
/gryt exch def
/blut exch def
/grnt exch def
/redt exch def
0 1 255 {
/indx exch def
/cynu 1 red indx get 255 div sub def
/magu 1 green indx get 255 div sub def
/yelu 1 blue indx get 255 div sub def
/kk cynu magu min yelu min def
/u kk currentundercolorremoval exec def
% /u 0 def
nredt indx 1 0 cynu u sub max sub redt exec put
ngreent indx 1 0 magu u sub max sub grnt exec put
nbluet indx 1 0 yelu u sub max sub blut exec put
ngrayt indx 1 kk currentblackgeneration exec sub gryt exec put
} for
{255 mul cvi nredt exch get}
{255 mul cvi ngreent exch get}
{255 mul cvi nbluet exch get}
{255 mul cvi ngrayt exch get}
setcolortransfer
{pop 0} setundercolorremoval
{} setblackgeneration
} bind def
}
{
/colorSetup2 {
[ /Indexed /DeviceRGB 255
{dup red exch get 255 div
exch dup green exch get 255 div
exch blue exch get 255 div}
] setcolorspace
} bind def
} ifelse
/fakecolorsetup {
/tran 256 string def
0 1 255 {/indx exch def
tran indx
red indx get 77 mul
green indx get 151 mul
blue indx get 28 mul
add add 256 idiv put} for
currenttransfer
{255 mul cvi tran exch get 255.0 div}
exch fmConcatProcs settransfer
} bind def
/BITMAPCOLOR {
/depth 8 def
gsave
3 index 2 div add exch
4 index 2 div add exch
translate
rotate
1 index 2 div neg
1 index 2 div neg
translate
scale
/height exch def /width exch def
/bitmapsave save def
fMLevel1 {
colorsetup
/is width depth wbytes string def
/cf currentfile def
width height depth [width 0 0 height neg 0 height]
{cf is readhexstring pop} {is} {is} true 3 colorimage
} {
colorSetup2
/is width depth wbytes string def
/cf currentfile def
7 dict dup begin
/ImageType 1 def
/Width width def
/Height height def
/ImageMatrix [width 0 0 height neg 0 height] def
/DataSource {cf is readhexstring pop} bind def
/BitsPerComponent depth def
/Decode [0 255] def
end image
} ifelse
bitmapsave restore
grestore
} bind def
/BITMAPCOLORc {
/depth 8 def
gsave
3 index 2 div add exch
4 index 2 div add exch
translate
rotate
1 index 2 div neg
1 index 2 div neg
translate
scale
/height exch def /width exch def
/lb width depth wbytes def
sl lb lt {lb ms} if
/bitmapsave save def
fMLevel1 {
colorsetup
/is im 0 lb getinterval def
ws 0 lb getinterval is copy pop
/cf currentfile def
width height depth [width 0 0 height neg 0 height]
{ip} {is} {is} true 3 colorimage
} {
colorSetup2
/is im 0 lb getinterval def
ws 0 lb getinterval is copy pop
/cf currentfile def
7 dict dup begin
/ImageType 1 def
/Width width def
/Height height def
/ImageMatrix [width 0 0 height neg 0 height] def
/DataSource {ip} bind def
/BitsPerComponent depth def
/Decode [0 255] def
end image
} ifelse
bitmapsave restore
grestore
} bind def
/BITMAPTRUECOLORc {
/depth 24 def
gsave
3 index 2 div add exch
4 index 2 div add exch
translate
rotate
1 index 2 div neg
1 index 2 div neg
translate
scale
/height exch def /width exch def
/lb width depth wbytes def
sl lb lt {lb ms} if
/bitmapsave save def
/is im 0 lb getinterval def
/ris im 0 width getinterval def
/gis im width width getinterval def
/bis im width 2 mul width getinterval def
ws 0 lb getinterval is copy pop
/cf currentfile def
width height 8 [width 0 0 height neg 0 height]
{width rip pop ris} {gis} {bis} true 3 colorimage
bitmapsave restore
grestore
} bind def
/BITMAPCMYKc {
/depth 32 def
gsave
3 index 2 div add exch
4 index 2 div add exch
translate
rotate
1 index 2 div neg
1 index 2 div neg
translate
scale
/height exch def /width exch def
/lb width depth wbytes def
sl lb lt {lb ms} if
/bitmapsave save def
/is im 0 lb getinterval def
/cis im 0 width getinterval def
/mis im width width getinterval def
/yis im width 2 mul width getinterval def
/kis im width 3 mul width getinterval def
ws 0 lb getinterval is copy pop
/cf currentfile def
width height 8 [width 0 0 height neg 0 height]
{width rip4 pop cis} {mis} {yis} {kis} true 4 colorimage
bitmapsave restore
grestore
} bind def
/BITMAPTRUECOLOR {
gsave
3 index 2 div add exch
4 index 2 div add exch
translate
rotate
1 index 2 div neg
1 index 2 div neg
translate
scale
/height exch def /width exch def
/bitmapsave save def
/is width string def
/gis width string def
/bis width string def
/cf currentfile def
width height 8 [width 0 0 height neg 0 height]
{ cf is readhexstring pop }
{ cf gis readhexstring pop }
{ cf bis readhexstring pop }
true 3 colorimage
bitmapsave restore
grestore
} bind def
/BITMAPCMYK {
gsave
3 index 2 div add exch
4 index 2 div add exch
translate
rotate
1 index 2 div neg
1 index 2 div neg
translate
scale
/height exch def /width exch def
/bitmapsave save def
/is width string def
/mis width string def
/yis width string def
/kis width string def
/cf currentfile def
width height 8 [width 0 0 height neg 0 height]
{ cf is readhexstring pop }
{ cf mis readhexstring pop }
{ cf yis readhexstring pop }
{ cf kis readhexstring pop }
true 4 colorimage
bitmapsave restore
grestore
} bind def
/BITMAPTRUEGRAYc {
/depth 24 def
gsave
3 index 2 div add exch
4 index 2 div add exch
translate
rotate
1 index 2 div neg
1 index 2 div neg
translate
scale
/height exch def /width exch def
/lb width depth wbytes def
sl lb lt {lb ms} if
/bitmapsave save def
/is im 0 lb getinterval def
/ris im 0 width getinterval def
/gis im width width getinterval def
/bis im width 2 mul width getinterval def
ws 0 lb getinterval is copy pop
/cf currentfile def
width height 8 [width 0 0 height neg 0 height]
{width rip pop ris gis bis width gray} image
bitmapsave restore
grestore
} bind def
/BITMAPCMYKGRAYc {
/depth 32 def
gsave
3 index 2 div add exch
4 index 2 div add exch
translate
rotate
1 index 2 div neg
1 index 2 div neg
translate
scale
/height exch def /width exch def
/lb width depth wbytes def
sl lb lt {lb ms} if
/bitmapsave save def
/is im 0 lb getinterval def
/cis im 0 width getinterval def
/mis im width width getinterval def
/yis im width 2 mul width getinterval def
/kis im width 3 mul width getinterval def
ws 0 lb getinterval is copy pop
/cf currentfile def
width height 8 [width 0 0 height neg 0 height]
{width rip pop cis mis yis kis width cgray} image
bitmapsave restore
grestore
} bind def
/cgray {
/ww exch def
/k exch def
/y exch def
/m exch def
/c exch def
0 1 ww 1 sub { /i exch def c i get m i get y i get k i get CMYKtoRGB
.144 mul 3 1 roll .587 mul 3 1 roll .299 mul add add
c i 3 -1 roll floor cvi put } for
c
} bind def
/gray {
/ww exch def
/b exch def
/g exch def
/r exch def
0 1 ww 1 sub { /i exch def r i get .299 mul g i get .587 mul
b i get .114 mul add add r i 3 -1 roll floor cvi put } for
r
} bind def
/BITMAPTRUEGRAY {
gsave
3 index 2 div add exch
4 index 2 div add exch
translate
rotate
1 index 2 div neg
1 index 2 div neg
translate
scale
/height exch def /width exch def
/bitmapsave save def
/is width string def
/gis width string def
/bis width string def
/cf currentfile def
width height 8 [width 0 0 height neg 0 height]
{ cf is readhexstring pop
cf gis readhexstring pop
cf bis readhexstring pop width gray} image
bitmapsave restore
grestore
} bind def
/BITMAPCMYKGRAY {
gsave
3 index 2 div add exch
4 index 2 div add exch
translate
rotate
1 index 2 div neg
1 index 2 div neg
translate
scale
/height exch def /width exch def
/bitmapsave save def
/is width string def
/yis width string def
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -