Article View: borland.public.cppbuilder.nativeapi
Article #13571Re: how to send directly the bitmap pixel to a postscript printer ?
From: Chris Hill
Date: Sat, 04 Oct 2003 17:47
Date: Sat, 04 Oct 2003 17:47
25 lines
1763 bytes
1763 bytes
On Fri, 3 Oct 2003 11:02:53 -0700, "Richard Yu"
<richard@colorselector.com> wrote:
>if size is 50 by 50, ok
>
>if size 150 by 150, wrong result.
I'm not very familiar with PostScript, but you might be overflowing
the maximum allowed string size. Instead of putting the image data
directly in a string, try using a procedure to read the image string.
10 10 translate
150 150 scale
/myimagedata 450 string def
150 150 8 [150 0 0 -150 0 150]
{ currentfile myimagedata readhexstring pop } false 3 colorimage
IMAGE DATA
showpage
450 is the size of one line of image data (3 components * 150 pixels).
IMAGE DATA is the same data you were already producing, but in a
slightly different place and without angle brackets < >.
Chris Hill
Chris244@aol.com
Technical Details
Message-ID:
<3f7f037c.3022060754@forums.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f7ca16a$1@newsgroups.borland.com> <3f7cee1e.2885516513@forums.borland.com> <3f7db9fd$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,11a834cdc185b9c2 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-04 11:06:48 PST From: Chris244@aol.com (Chris Hill) Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: how to send directly the bitmap pixel to a postscript printer ? Date: Sat, 04 Oct 2003 17:47:02 GMT Message-ID: <3f7f037c.3022060754@forums.borland.com> References: <3f7ca16a$1@newsgroups.borland.com> <3f7cee1e.2885516513@forums.borland.com> <3f7db9fd$1@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 12.221.66.183 X-Trace: newsgroups.borland.com 1065289634 12.221.66.183 (4 Oct 2003 10:47:14 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail