
question from a novice (very very very novice) about image inclusion
I have the following:
---------------------------------- cut here ----------------------------------
/foodle {
/inch {72 mul} def
/picstr 2 string def
/plotimage
{11 13 1 [11 0 0 -13 0 13]
{currentfile picstr readhexstring pop}
image
Quote:
} def
gsave
4.2 inch 5.4 inch translate
.11 inch .13 inch scale
plotimage
00130100000001000014010400090100aa000017000300000000
grestore
Quote:
} def
100 100 translate
foodle
200 200 translate
foodle
200 200 translate
foodle
showpage
---------------------------------- cut here ----------------------------------
The code inside foodle is generated by xgrabsc.
There is an error using readhexstring with currentfile when called
from within the "procedure" but I have no clue what the problem is.
Basically, I want to be able to shove an image generated by xgrabsc
into foodle and have things work.
Thanks for any help you can give. I apologize if this is a silly
question by someone who should have read a bit more of the book :-).
andy