Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #2598
| Newsgroups | comp.lang.postscript |
|---|---|
| From | Peter Billam <peter@www.pjb.com.au> |
| Subject | Re: from image to imagemask |
| References | (4 earlier) <slrnnkl2os.2lf.peter@box8.pjb.com.au> <13981bac-3f12-48ab-8598-e7cd69798408@googlegroups.com> <slrnnkqk3l.3ne.peter@box8.pjb.com.au> <2a1f732c-60fd-4042-8ffc-2d9464446df8@googlegroups.com> <c07b8961-c73d-4804-b4fd-f96b646a07b1@googlegroups.com> |
| Message-ID | <slrnnkv2pe.1ee.peter@box8.pjb.com.au> (permalink) |
| Date | 2016-06-02 01:26 +0000 |
| Organization | Unlimited download news at news.astraweb.com |
On 2016-06-01, luser- -droog <mijoryx@yahoo.com> wrote:
> On Wednesday, June 1, 2016 at 2:53:32 AM UTC-5, luser- -droog wrote:
>> On Tuesday, May 31, 2016 at 3:51:03 AM UTC-5, Peter Billam wrote:
>> > Trouble is, I'll want to show green text on a black background,
>> > or orange text over a realistic natural landscape.
>> > AIUI, this means I have to modify it from `image` to `imagemask`.
>> > But I haven't managed to do this :-(
>>
> . Let me leave it at a link where I'm grabbing some ideas to sleep on:
> http://stackoverflow.com/questions/17613770/733077/image-represented-as-radix-number-in-postscript
I got something working :-) See:
wget -O fonts.ps http://www.pjb.com.au/comp/free/fonts.ps.txt
or:
curl http://www.pjb.com.au/comp/free/fonts.ps.txt -o fonts.ps
The main changes were a 5 -1 roll just before imagemask
to get the charproc into the right place,
and some single-pixel experiments which revealed that in the
57 {<60 90 90 70 10 60 00>}
each row has to start on a byte-boundary. This certainly makes
the hex easier to read and write ; I suppose it must be documented
somewhere ...
Displaying with:
/xmax currentpagedevice (PageSize) get 0 get def
/ymax currentpagedevice (PageSize) get 1 get def
(/home/pjb/ps/lib/fonts.ps) run
(/home/pjb/ps/lib/colours.ps) run
/Bitfont5x7 40 selectfont
black setrgbcolor 0 0 xmax ymax rectfill green setrgbcolor
100 100 moveto (01234 56789 ?) show
I'll add some characters, like uppercases, dot, etc :-)
Peter
--
Peter Billam www.pjb.com.au www.pjb.com.au/comp/contact.html
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
wanted: kcharpath ... Peter Billam <peter@www.pjb.com.au> - 2016-05-15 03:33 +0000
Re: wanted: kcharpath ... luser- -droog <mijoryx@yahoo.com> - 2016-05-15 14:16 -0700
Re: wanted: kcharpath ... Peter Billam <peter@www.pjb.com.au> - 2016-05-16 06:51 +0000
Re: wanted: kcharpath ... Peter Billam <peter@www.pjb.com.au> - 2016-05-18 02:01 +0000
Re: wanted: kcharpath ... luser- -droog <mijoryx@yahoo.com> - 2016-05-17 20:41 -0700
Re: wanted: kcharpath ... luser- -droog <mijoryx@yahoo.com> - 2016-05-17 20:44 -0700
Re: wanted: kcharpath ... Peter Billam <peter@www.pjb.com.au> - 2016-05-18 06:59 +0000
Re: wanted: kcharpath ... luser- -droog <mijoryx@yahoo.com> - 2016-05-18 22:29 -0700
Re: wanted: kcharpath ... Carlos <angus@quovadis.com.ar> - 2016-05-18 23:00 +0200
Re: wanted: kcharpath ... Peter Billam <peter@www.pjb.com.au> - 2016-05-21 02:09 +0000
Re: wanted: kcharpath ... Peter Billam <peter@www.pjb.com.au> - 2016-05-21 03:13 +0000
Re: wanted: kcharpath ... Carlos <angus@quovadis.com.ar> - 2016-05-22 14:20 +0200
Re: wanted: kcharpath ... Peter Billam <peter@www.pjb.com.au> - 2016-05-29 06:24 +0000
Re: wanted: kcharpath ... luser- -droog <mijoryx@yahoo.com> - 2016-05-28 23:43 -0700
Re: wanted: kcharpath ... luser- -droog <mijoryx@yahoo.com> - 2016-05-29 01:10 -0700
from image to imagemask Peter Billam <peter@www.pjb.com.au> - 2016-05-31 08:51 +0000
Re: from image to imagemask luser- -droog <mijoryx@yahoo.com> - 2016-06-01 00:53 -0700
Re: from image to imagemask luser- -droog <mijoryx@yahoo.com> - 2016-06-01 01:10 -0700
Re: from image to imagemask Peter Billam <peter@www.pjb.com.au> - 2016-06-02 01:26 +0000
Re: from image to imagemask Peter Billam <peter@www.pjb.com.au> - 2016-06-03 07:53 +0000
Re: wanted: kcharpath ... Carlos <angus@quovadis.com.ar> - 2016-06-03 14:38 +0200
Re: wanted: kcharpath ... Peter Billam <peter@www.pjb.com.au> - 2016-06-06 02:43 +0000
Re: wanted: kcharpath ... Carlos <angus@quovadis.com.ar> - 2016-06-06 07:53 +0200
csiph-web