🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1444

PS Level 2 image interpolation

#1444
From: Craig Artley
Date: Mon, 12 Oct 1992 18:57
45 lines
1646 bytes
I'm trying to enable Level 2 image interpolation by setting Interpolate
to true in the image dictionary.  As I understand the description of
Interpolate on p. 222 of the red book, this should smoothly interpolate
between sample values when the source resolution is lower than the
device resolution.  Unfortunately, when i run the code below I simply
get the same checkerboard result as when interpolation is disabled.
	
Am I doing something wrong?

--------------------------------
%!PS-Adobe-3.0
%%BoundingBox: 13 31 603 746
%%EndComments

gsave
108 108 translate
432 576 scale

/DeviceGray setcolorspace
<<
	/ImageType 1
	/Width 3 /Height 3
	/BitsPerComponent 8
	/Decode [0 1]
	/ImageMatrix [3 0 0 -3 0 3]
	/DataSource currentfile /ASCIIHexDecode filter
	/Interpolate true
>>
image

00ff00ff00ff00ff00>

grestore

200 50 moveto
/Helvetica-Bold findfont 48 scalefont setfont
(Image Test) show

%%EOF
--------------------------------

	-craig
-- 
Craig Artley      cartley@mines.colorado.edu      (303) 273-3557
Dept. of Geophysics, Colorado School of Mines, Golden, CO  80401
Technical Details
Message-ID: <1992Oct12.185740.28980@slate.mines.colorado.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!ukma!wupost!uwm.edu!caen!hellgate.utah.edu!csn!copper!slate!cartley

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!ukma!wupost!uwm.edu!caen!hellgate.utah.edu!csn!copper!slate!cartley
From: cartley@slate.mines.colorado.edu (Craig Artley)
Newsgroups: comp.sys.next.programmer,comp.lang.postscript
Subject: PS Level 2 image interpolation
Summary: Doesn't work for me
Keywords: Level 2 image interpolation
Message-ID: <1992Oct12.185740.28980@slate.mines.colorado.edu>
Date: 12 Oct 92 18:57:40 GMT
Organization: Colorado School of Mines
Lines: 45