Article View: comp.lang.postscript
Article #6695Display external TIFF file
From: asproat1
Date: Thu, 03 May 2007 01:32
Date: Thu, 03 May 2007 01:32
33 lines
2072 bytes
2072 bytes
I've found and implemented the following code to display external JPEG
files and it works well:
300 300 translate
100 100 scale
/DeviceRGB setcolorspace
% myfile.jpg is a 100 x 100 jpeg
/infile (c:\\temp\\myfile.jpg) (r) file def
/Data {infile /DCTDecode filter} def
<<
/ImageType 1
/Width 100
/Height 100
/ImageMatrix [100 0 0 -100 0 100]
/DataSource Data
/BitsPerComponent 8
/Decode [0 1 0 1 0 1]
>>
image
showpage
But when I execute the same code with a TIFF file, substituting /
RunLengthDecode for the encoding, all I get is a one pixel high line.
I suspect I'm not using the correct filter or have made some other
mistake in one of the many portions of the image matrix but after
several days, I have been unable to determine how to make it work.
If anyone knows where I've made my mistake, please let me know.
Thank you
Alan
Technical Details
Message-ID:
<1178155922.955360.233590@c35g2000hsg.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!c35g2000hsg.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f62f2,c4b31354dcc63574,start X-Google-Thread: 10c61a,c4b31354dcc63574,start X-Google-Attributes: gidf62f2,gid10c61a,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!c35g2000hsg.googlegroups.com!not-for-mail From: asproat1@hotmail.com Newsgroups: comp.lang.postscript,adobe.postscript.programming Subject: Display external TIFF file Date: 2 May 2007 18:32:02 -0700 Organization: http://groups.google.com Lines: 34 Message-ID: <1178155922.955360.233590@c35g2000hsg.googlegroups.com> NNTP-Posting-Host: 71.170.109.35 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1178155923 8780 127.0.0.1 (3 May 2007 01:32:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 3 May 2007 01:32:03 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: c35g2000hsg.googlegroups.com; posting-host=71.170.109.35; posting-account=HxrjNgwAAAAmXelqKtAwLuEkIL228bix