On Thu, May 31, 2001 at 03:50:21PM +0900, Gerfried Fuchs wrote: > On Thu, May 31, 2001, Christopher Drexler wrote: > > I didn't loose the transparence effects for b/w eps files. I > > patched mgp a little bit, so that the pgm reader is still the one from mgp > > and imlib is used for all the rest. So the transparency for the eps to pgm > > converted images is retained. Moreover another patch allows for all pgm > > images to be displayed with transparent background and "%fore" as foreground > > color. > > Sounds cool. Could you make this patch available so it might go into > the official sources and/or to the builds of the people that'd like to > have that posibility? I'm not sure if this is the semantics Yoshifumi Nishida actually wanted for the pnm images. Nevertheless, the patch is attachted to this email. > Thanks for the info, but now please share your patch with us :) :-) Regards, Chris -- Dipl.-Inf. Christopher Drexler, Lehrst.f. Mustererkennung _ __ __ ___ Institut f. Informatik, Universitaet Erlangen-Nuernberg | | | \/ | __| WWW : http://www5.informatik.uni-erlangen.de/~drexler | |__| |\/| | _| GPG : http://www.keyserver.net |____|_| |_|___|
Index: draw.c
===================================================================
RCS file: /cvsmgp/kit/draw.c,v
retrieving revision 1.185
diff -u -r1.185 draw.c
--- draw.c 2001/03/17 09:48:14 1.185
+++ draw.c 2001/06/01 10:10:33
@@ -2839,6 +2839,8 @@
- height * yzoomrate / 100 / 2,
myimage, xzoomrate, yzoomrate);
state->linewidth += (width * xzoomrate / 100);
+
+ image_setcolor(state);
end:
if (!caching){
XUndefineCursor(display, state->target);
@@ -2944,9 +2946,6 @@
p = imagefile;
if (strncmp(p, ".gscache", sizeof(".gscache") - 1) != 0)
unlink(imagefile);
-
- if (!backflag)
- image_setcolor(state);
}
void
Index: image/Imakefile.in
===================================================================
RCS file: /cvsmgp/kit/image/Imakefile.in,v
retrieving revision 1.11
diff -u -r1.11 Imakefile.in
--- image/Imakefile.in 2001/01/18 09:07:14 1.11
+++ image/Imakefile.in 2001/06/01 10:10:34
@@ -3,11 +3,11 @@
#if @USE_IMLIB@
SRCS= imagetypes.c send.c zio.c zoom.c new.c compress.c reduce.c\
value.c misc.c rotate.c rle.c rlelib.c smooth.c halftone.c clip.c\
- dither.c path.c bright.c window.c imlib_loader.c
+ dither.c path.c bright.c window.c pbm.c imlib_loader.c
OBJS= imagetypes.o send.o zio.o zoom.o new.o compress.o reduce.o\
value.o misc.o rotate.o rle.o rlelib.o smooth.o halftone.o clip.o\
- dither.o path.o bright.o window.o imlib_loader.o
+ dither.o path.o bright.o window.o pbm.o imlib_loader.o
#else
SRCS= imagetypes.c gif.c send.c zio.c zoom.c new.c compress.c reduce.c\
value.c misc.c rotate.c rle.c rlelib.c smooth.c halftone.c clip.c\
Index: image/imagetypes.c
===================================================================
RCS file: /cvsmgp/kit/image/imagetypes.c,v
retrieving revision 1.7
diff -u -r1.7 imagetypes.c
--- image/imagetypes.c 2001/01/18 09:07:14 1.7
+++ image/imagetypes.c 2001/06/01 10:10:34
@@ -22,6 +22,7 @@
char *name; /* name of this image format */
} ImageTypes[] = {
#ifdef USE_IMLIB
+ { pbmIdent, pbmLoad, "Portable Bit Map (PBM, PGM, PPM)" },
{ imIdent, imLoad, "Imlib" },
#else
{ fbmIdent, fbmLoad, "FBM Image" },
Attachment:
pgp84zpSELUUJ.pgp
Description: PGP signature