⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eg_pgcp.ps

📁 开放源码的编译器open watcom 1.6.0版的源代码
💻 PS
📖 第 1 页 / 共 5 页
字号:
%!PS-Adobe-2.0 EPSF-1.2
%%Creator: CSG Graphics Screen Capture
%%EndComments

150 dict begin

/imageStr 128 string def                        % define char imageStr[ 128 ]
/imageChar 1 string def                         % define char imageChar[ 1 ]
/imageLen 0 def                                 % define int  imageLen
/imageRepChar 0 def                             % define int  imageRepChar

/NextData {
  currentfile imageChar readhexstring
  {
    /imageLen exch 0 get def
    imageLen 128 lt
      { imageStr 0 imageLen 1 add getinterval   % get substring of imageLen + 1
        currentfile exch readhexstring pop      % read imageLen+1 bytes in imageStr
      }
      { /imageLen 256 imageLen sub 1 add def    % imageLen := 256 - imageLen + 1
        currentfile imageChar readhexstring pop % read repeat char
        /imageRepChar exch 0 get def            % ...
        0 1 imageLen 1 sub {                    % fill imageStr with repeat char
          imageStr exch imageRepChar put        % ...
        } for                                   % ...
        imageStr 0 imageLen getinterval         % get substring of imageLen
      }
      ifelse
  } if
} def

/gPaint % Plot a graphics screen on a 300-dpi PostScript Device.
{
  pop                                           % pop off video mode
  /numYpixels exch def
  /numXpixels exch def
  /Ypixels exch def
  /Xpixels exch def
  /bitsPerPixel exch def
  /borderOn exch def

  /dotWidth 72 300 div def  % points per dot = PointsPI / DotsPI
  % decide on pixel size according to numXpixels & numYpixels
  numXpixels 720 eq
  { 2 3 }
  { numXpixels 640 eq
    { numYpixels 200 eq
      { 2 5 }
      { numYpixels 350 eq
        { 2 3 }
        { numYpixels 400 eq { 2 2 } { 2 2 } ifelse }
        ifelse
      }
      ifelse
    }
    { numXpixels 360 eq
      { 4 3 }
      { numXpixels 320 eq
        { numYpixels 200 eq
          { 4 5 }
          { numYpixels 350 eq { 4 3 } { 4 2 } ifelse }
          ifelse
        }
        { 2 2 }
        ifelse
      }
      ifelse
    }
    ifelse
  }
  ifelse
  /dotsPerYpixel exch def
  /dotsPerXpixel exch def

  % currentpoint is upper left of screen image.
  matrix currentmatrix    % Save the CTM

  % Set the CTM to translate to the lower left corner of the screen
  currentpoint
  transform  % Transform currentpoint to device coords
% initmatrix % Restore the default (initial) CTM
  itransform % get the current point under the new CTM

  % If enabled, draw the border
  borderOn 0 ne
  { /borderSize 9 def
    currentlinewidth 2 div borderSize neg rmoveto
    Xpixels dotsPerXpixel dotWidth mul mul
    Ypixels dotsPerYpixel dotWidth mul mul
    currentlinewidth sub
    exch currentlinewidth sub exch
    borderOn 1 eq
    { gsave
      borderSize 2 mul add exch borderSize 2 mul add exch
      dup neg 0 exch rlineto
      exch 0 rlineto
      0 exch rlineto
      closepath stroke
      grestore
    }
    { gsave
      /doASide { borderSize arcto pop pop pop pop } bind def
      borderSize add exch borderSize add exch
      0 borderSize neg rmoveto
      currentpoint 2 index sub 1 index 100 add 1 index doASide
      currentpoint exch 3 index add exch 1 index 1 index 100 add doASide
      currentpoint 2 index add 1 index 100 sub 1 index doASide
      currentpoint exch 3 index sub exch 1 index 1 index 100 sub doASide
      closepath stroke
      grestore
      pop pop
    }
    ifelse
    borderSize sub
    exch borderSize add exch
  }
  if
  9 sub

  Ypixels dotsPerYpixel dotWidth mul mul sub
  translate

  Xpixels dotsPerXpixel dotWidth mul mul
  Ypixels dotsPerYpixel dotWidth mul mul
  scale

  Xpixels
  Ypixels
  bitsPerPixel
  [Xpixels 0 0 Ypixels neg 0 Ypixels]
  { NextData }
  image
  setmatrix
} def

{ currentpoint }                            % check if currentpoint set
stopped                                     % if error is signalled..
{ 30 750 moveto }                           % ..then set to top left of page
{ pop pop } ifelse                          % ..else pop off coordinates

2 4 640 480 640 480 018 gPaint
81008100c100000f81ff81ffc3ff01f00f81ff81ffc3ff01f00f81ff81ffc3ff01f00f81ff
81ffc3ff01f00f81ff81ffc3ff01f00f81ff81ffc3ff01f00f81ff81ffc3ff01f00f81fff5ff
00f0ff00030ffff00ff7ff04f0000ff000f5ff000f81fff2ff01f00f81fff4ff0200ff00f4ff
0400ff00ff00f6ff01f00f81fff2ff01f00f81fff4ff0500ff00ff000fffffff00fcff01f0
0ffeff0300f00fffff0005fff00f000fffff00000f81fff3ff01f00f81fff4ffff00080fff
f00ffff00ff00ffdff01f00ffeff02000f00ffff08f00fff000f00fff00f81fff2ff01f00f
81fff4ff0000feff03f00ffff0ff00000ffdff01f00ffeff0300ff00ffff00070fff00ff00
fff00f81fff2ff01f00f81fff4ff0000feff04f00ffff00ffaff0c00ff00ff00ff00f00ff0
0fff00feff00f0ff0f81fff3ff01f00f81fff5ff02f0000fffffff00ffffff00fbff0df000
0ff000ff00ff000f00f0000ffeff000081fff2ff01f00f81ff81ffc3ff01f00f81ff81ffc3ff
01f00f81ff81ffc3ff01f00f81ff81ffc3ff01f00f81ff81ffc3ff01f00f81ff81ffc3ff01f0
0f81ff81ffc3ff01f00f81ff81ffc3ff01f00f81ff81ffc3ff01f00ffeff81008100e900feff
00f0e500feff01f00ffeff000f81ff81ffebff00f0feff00f0e6ff00f0feff01f00ffeff000f
81ff81ffebff00f0feff00f0e6ff00f0feff01f00ffeff000f81ff81ffebff00f0feff00f0
e6ff00f0feff01f00ffeff000f81ff81ffebff00f0feff00f0e6ff00f0feff01f00ffeff000f
81ff81ffebff00f0feff00f0e6ff00f0feff01f00ffeff000f81ff81ffebff00f0feff00f0
e6ff00f0feff01f00ffeff000f81ff81ffebff00f0feff00f0e6ff00f0feff01f00ffeff000f
81ff81ffebff00f0feff00f0fdff020fff0ffbffff00f5ff00f0feff01f00ffeff000f81ff
81ffebff00f0feff00f0fdff02f0fff0fbff01f00ff5ff00f0feff01f00ffeff000f81ff81ff
ebff00f0feff00f0fcff020fff0ffcff02f00fffff0001fff0ff00fcff00f0feff01f00ffeff
000f81ff81ffebff00f0feff00f0feff04f0fff0fff0fcff01f00fffff05f00ff00ff00ffdff
00f0feff01f00ffeff000f81ff81ffebff00f0feff00f0fdff020fff0ffdff04f00ff00fff
ff00040ff00ff00ffdff00f0feff01f00ffeff000f81ff81ffebff00f0feff00f0fdff02f0
fff0fdff0bf00ff00ff00ff00ff00ff00ffdff00f0feff01f00ffeff000f81ff81ffebff00f0
feff00f0fcff020fff0ffdffff00ffff06000f00f00ff00ffdff00f0feff01f00ffeff000f
81ff81ffebff00f0feff00f0feff04f0fff0fff0eeff00f0feff01f00ffeff000f81ff81ff
ebff00f0feff00f0fdff020fff0fedff00f0feff01f00ffeff000f81ff81ffebff00f0feff
00f0e6ff00f0feff01f00ffeff000f81ff81ffebff00f0feff00f0e6ff00f0feff01f00ffeff
000f81ff81ffebff00f0feff00f0e6ff00f0feff01f00ffeff000f81ff81ffebff00f0feff
00f0feff04f0fff0fff0feff00f0fe00fdff01f000fbff00f0feff01f00ffeff000f81ff81ff
ebff00f0feff00f0fcff020fff0ffdff0200fff0fcff0000fbff00f0feff01f00ffeff000f
81fffefff200000f81fffeff00f0feff00f0fdff02f0fff0fcff0100f0ffffff00ffff0000
fbff00f0feff01f00ffeff000f83fffc000f0fff0fff0fff0fff0fff0fff0fff0ff0fd00000f
83ff00f0feff00f0fdff020fff0ffcffff0005fff00ff00fffff00000ffdff00f0feff01f0
0ffeff000f87ff00f0fe0017f0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fffff0
fe0086ff00f0feff00f0feff04f0fff0fff0fdff0300f0fff0ff00040fff00ff00fdff00f0
feff01f00ffeff000f8aff00f0ff00200fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0f
ff0fff0fff0fff0fff0fff0ffe0089ff00f0feff00f0fcff020fff0ffdff0000ffff01f00f
feff0200ff00fdff00f0feff01f00ffeff000f8cfffe0025fff0fff0fff0fff0fff0fff0ff
f0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0ff00000f8cff00f0feff00f0
fdff02f0fff0fdff02f0000fffffff0004fff00f000ffdff00f0feff01f00ffeff000f8eff
ff002d0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff
0fff0fff0fff0fff0ff0000f8eff00f0feff00f0fdff020fff0fedff00f0feff01f00ffeff
000f90ffff0031fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0
fff0fff0fff0fff0fff0fff0fff0fff0fff0000f90ff00f0feff00f0feff04f0fff0fff0eeff
00f0feff01f00ffeff000f92ffff0032ff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff
0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fffff00000f92ff00f0
feff00f0e6ff00f0feff01f00ffeff000f94ff37f000f0fff0fff0fff0fff0fff0fff0fff0
fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0ff

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -