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

📄 eg_pgc.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
81ffc3ff01f00f81ff81ffc3ff01f00f81ff81ffc3ff01f00f81ff81ffc3ff01f00f81fffaff
02f0000ffcff01000fefff04f0000ff000f5ff000f81fff8ff01f00f81fffaff0200ff00fcff
01f00fefff0400ff00ff00f6ff01f00f81fff8ff01f00f81fffbff01f00ffeffff00ffff0bf0
0ffff00ff00ff00ff00ff0ff00fcff01f00ffeff0300f00fffff0005fff00f000fffff00000f
81fff9ff01f00f81fffbff01f00fffff0cf00ff00ffff00ffff00ff00ff0fe0003f00ff00f
fdff01f00ffeff02000f00ffff08f00fff000f00fff00f81fff8ff01f00f81fffbff01f00f
ffff0cf00ff00ffff00ffff00ff00ff0fe0003f00ff00ffdff01f00ffeff0300ff00ffff00
070fff00ff00fff00f81fff8ff01f00f81fffaff0f00ff00f00ff00ffff00ffff00ff00ff0
ff0f0400f00ff00ffcff0c00ff00ff00ff00f00ff00fff00feff00f0ff0f81fff9ff01f00f
81fffaff03f0000fffff00ffffff00ffff0a000f00f00fff00f00ff00ffcff0df0000ff000
ff00ff000f00f0000ffeff000081fff8ff01f00f81ff81ffc3ff01f00f81ff81ffc3ff01f0
0f81ff81ffc3ff01f00f81ff81ffc3ff01f00f81ff81ffc3ff01f00ffefffe0001fff0ff00
81ff81ffcdff01f00ffeff0000feff0300fff00f81ff81ffceff01f00ffeffff00050fff00
ff000f81ff81ffceff01f00ffcff0500ff00f0000f81ff81ffceff01f00ffcff0100ffff00
01f00ffdff81008100d500feff01f00ffeff0700ff00ff000ff00ff9ff000f81ff81ffdbff
00f0feff01f00ffeff04f0000ffff0ff00f8ff000f81ff81ffdbff00f0feff01f00feeff000f
81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ff
dbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0
feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f0
0feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff
000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff
81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff
00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff
01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00f
eeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f
81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ff
dbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0
feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f0
0feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff
000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff
81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff
00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff
01f00feeff000f81ff81ffdbff00f0feff01f00feeff000f81ff81ffdbff00f0feff01f00f
eeff000fb0ff38f0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0ff
f0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff081ffe5ff00f0feff01f0
0feeff000fafff380fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0f
ff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0f81ffe6ff00f0feff01f0
0feeff000fb1ff3af0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0
fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff081ffe6ff00f0feff
01f00feeff000fb0ff3a0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0f
ff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0f81ffe7ff00f0
feff01f00feeff000fb0ff38f0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0
fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff081ffe5ff00f0
feff01f00feeff000fafff380fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0f
ff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0f81ffe6ff00f0
feff01f00feeff000fb1ff3af0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0
fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff0fff081ffe6ff

⌨️ 快捷键说明

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