|
From: Daniel J S. <dan...@ie...> - 2005-01-10 08:01:43
|
Anyone familiar with CorelDraw? Someone's having a problem importing a
gnuplot PostScript image of indexed palette type. (Apparently the color
images import fine.) The result in CorelDraw is a black rectangle. The
PostScript image remains visible in stuff like Ghostview, GIMP, etc.
The gnuplot syntax for indexed images is below. I've done a web search
and can't find any cases of CorelDraw users reporting such behavior.
Dan
%%BeginImage
gsave
987 3853 translate
5562 -3326 scale
%%BeginPalette
[ /Indexed
/DeviceRGB 255
<
000000 100006 17000d 1c0013 200019 24001f 270026 2a002c
<snip>
fbeb00 fced00 fcf000 fdf300 fdf600 fef900 fefc00 ffff00
>
] setcolorspace
%%EndPalette
<<
/ImageType 1
/Width 128
/Height 128
/BitsPerComponent 8
/ImageMatrix [ 128 0 0 128 0 0 ]
/Decode [ 0 255 ]
/imagebuf 16384 string def
/DataSource {currentfile imagebuf readhexstring pop}
/MultipleDataSources false
/Interpolate false
>>
image
e8e8e8e8e8e8e8e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9e9
<snip>
81818181
grestore
%%EndImage
|