[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users 00958] Re: fore no longer works with EPS-images



I think this is related to a difference I've noticed between magicpoint 1.07 
and 1.09 which has so far prevented me from using the newer version.

Both behave the same when displaying a truly mono eps image - the image is 
made transparent with the foreground color controlled by %fore.

But for a color eps image the behavior is different. 1.07 displays the image 
with the original background color. 1.09 makes the background transparent. I 
had an image which looked mono, but the system thought was color. In this case 
the foreground color is fixed as original regardless of %fore - perhaps this 
is what happened for you?

Here is the output from 1.07 and 1.09 with -V switch when a color eps images 
is displayed. Note that the same .gscache file is being used in both cases so 
the difference in _not_ coming from ghostscript:

1.07:

gs cache filename: .gscache.cospar2.eps.675x675
gs cache valid, using it 
image_load_ps: cospar2.eps: pnmraw+ file = .gscache.cospar2.eps.675x675
.gscache.cospar2.eps.675x675 is a 675x675 Raw PPM image with 256 levels
computing zoom: screen=(1024,768) image=(675,675) zoom 
param=(100.00/asis,100.00/asis)
resulting zoom=(1.000000,1.000000)
  Building XImage...done

1.09:

gs cache filename: .gscache.cospar2.eps.675x675
gs cache valid, using it 
image_load_ps: cospar2.eps: pnmraw+ file = .gscache.cospar2.eps.675x675
.gscache.cospar2.eps.675x675 is a 675x675 Raw PPM image with 256 levels
computing zoom: screen=(1024,768) image=(675,675) zoom 
param=(100.00/asis,100.00/asis)
resulting zoom=(1.000000,1.000000)
obj_image_trans: true: trans=16777215, rgb_used=0, rgb_size=0
  image=675x675+174+19  bgpixmap[bgindex].image=3x768
  Building XImage...done

Note the "obj_image_trans: true" line from 1.09.

Nishida san - was this an intentional change? Maybe it's to do with the way 
the two versions were compiled (1.07 was from an rpm off the net)... I haven't 
found the time to investigate further yet...

Clem

-- 
**********************************************************************
Clem Pryke - Senior Research Associate
University of Chicago,
Room 226, LASR, 933 East 56th Street, Chicago, Illinois 60637, USA
Tel: 773 702-7853  Fax: 773 834-1891  email: pryke@focus.uchicago.edu
**********************************************************************