Article View: comp.lang.postscript
Article #9145Re: fast rendering of 1-bit deep images
From: Ben Cranston
Date: Fri, 02 Mar 1990 20:38
Date: Fri, 02 Mar 1990 20:38
38 lines
1500 bytes
1500 bytes
Didn't really look at those tiny turkeys until after posting. Some devices
invert the X or Y scales between user and device coordinates. Looks like
better bet is:
m n idtransform abs exch abs exch scale
which forces the distance vector components to be positive.
%!
/inch { 72 mul } def
/picstr 3 string def
/imageturkey {
24 23 idtransform abs exch abs exch scale
24 23 1
[24 0 0 -23 0 23]
{currentfile picstr readhexstring pop}
image
} def
gsave
3 inch 4 inch translate
imageturkey
FFC4FF FFD8FF FFDB7F F1B6BF
EEB6DF EB4DDF C349AF 8A0177
E80073 E8A0EB E3F81D C7FC3B
8FCE7D 071203 4D443D 44907B
CE403D E715C3 F1C1FF F803FF
FC07FF E1E7FF E007FF
grestore
showpage
--
Sig DS.L ('ZBen') ; Ben Cranston <zben@Trantor.UMD.EDU>
* Network Infrastructures Group, Computer Science Center
* University of Maryland at College Park
* of Ulm
Technical Details
Message-ID:
<6198@umd5.umd.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!umd5!zbenReferences:
<1822@esquire.UUCP> <6197@umd5.umd.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!umd5!zben From: zben@umd5.umd.edu (Ben Cranston) Newsgroups: comp.lang.postscript Subject: Re: fast rendering of 1-bit deep images Summary: OOPS make that: <m> <n> idtransform abs exch abs exch scale Message-ID: <6198@umd5.umd.edu> Date: 2 Mar 90 20:38:43 GMT References: <1822@esquire.UUCP> <6197@umd5.umd.edu> Reply-To: zben@umd5.umd.edu (Ben Cranston) Organization: University of Maryland, College Park Lines: 38