Path: 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: 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 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 * Network Infrastructures Group, Computer Science Center * University of Maryland at College Park * of Ulm