From: Rafael Le�n
Subject: Trasparent color
Date: 
Message-ID: <a26ea9$2d5$1@mercurio.cica.es>
Hi, i use LispWorks and the capi library. I'm using a pixmap-port for
drawing. When i finish the drawing process, i copy the pixmap-port to a
Pinboard-Layout. The pixmap port backgroung is white, but i would like it to
be transparent, so only the lines i draw would be put in the pinboard. Is
there a transparent color for doing this?

(setf (Pixmap-Port *ventanaprincipal*) (gp:create-pixmap-port Pinboard 1000
660 :clear t :background :white))
.
.
drawing process
.
.
(gp:copy-pixels Pinboard (Pixmap-Port *ventanaprincipal*) 0 0 1000 660 0 0)

--
Thank you..
Rafa.

From: Jochen Schmidt
Subject: Re: Trasparent color
Date: 
Message-ID: <3C48D1E9.8090404@dataheaven.de>
Rafael Le�n wrote:
> Hi, i use LispWorks and the capi library. I'm using a pixmap-port for
> drawing. When i finish the drawing process, i copy the pixmap-port to a
> Pinboard-Layout. The pixmap port backgroung is white, but i would like it to
> be transparent, so only the lines i draw would be put in the pinboard. Is
> there a transparent color for doing this?
> 
> (setf (Pixmap-Port *ventanaprincipal*) (gp:create-pixmap-port Pinboard 1000
> 660 :clear t :background :white))
> .
> .
> drawing process
> .
> .
> (gp:copy-pixels Pinboard (Pixmap-Port *ventanaprincipal*) 0 0 1000 660 0 0)

Take a look at the gp:pixplt function and there particularily at the 
"operation" argument where you can specify a boolean operation. The 
boolean operation is applied to the pixel value on the output and the 
corresponding pixel value of your pixmap-port.

ciao,
Jochen
From: Rafael Le�n
Subject: Re: Trasparent color
Date: 
Message-ID: <a2hf6g$2j0$1@mercurio.cica.es>
"Jochen Schmidt" <···@dataheaven.de> escribi� en el mensaje
·····················@dataheaven.de...
> Rafael Le�n wrote:
> > Hi, i use LispWorks and the capi library. I'm using a pixmap-port for
> > drawing. When i finish the drawing process, i copy the pixmap-port to a
> > Pinboard-Layout. The pixmap port backgroung is white, but i would like
it to
> > be transparent, so only the lines i draw would be put in the pinboard.
Is
> > there a transparent color for doing this?
> >
> > (setf (Pixmap-Port *ventanaprincipal*) (gp:create-pixmap-port Pinboard
1000
> > 660 :clear t :background :white))
> > .
> > .
> > drawing process
> > .
> > .
> > (gp:copy-pixels Pinboard (Pixmap-Port *ventanaprincipal*) 0 0 1000 660 0
0)
>
> Take a look at the gp:pixplt function and there particularily at the
> "operation" argument where you can specify a boolean operation. The
> boolean operation is applied to the pixel value on the output and the
> corresponding pixel value of your pixmap-port.
>
> ciao,
> Jochen
>
>

Does anyone know how to use the gp:pixblt function? I have used it to copy
from one pixmap-port to another graphic port using different boolean
functions (boole-xor, boole-c1, boole-and,...) for the "operation" argument,
but it always work in the same way. Why these boolean functions work with
all the graphics functions (gp:draw-rectangle for example) and don't do with
gp:copy-pixels?
From: Wade Humeniuk
Subject: Re: Trasparent color
Date: 
Message-ID: <a2hjun$9vh$1@news3.cadvision.com>
"Rafael Le�n" <····@albireo.lcc.uma.es> wrote in message
·················@mercurio.cica.es...
> Does anyone know how to use the gp:pixblt function? I have used it to copy
> from one pixmap-port to another graphic port using different boolean
> functions (boole-xor, boole-c1, boole-and,...) for the "operation"
argument,
> but it always work in the same way. Why these boolean functions work with
> all the graphics functions (gp:draw-rectangle for example) and don't do
with
> gp:copy-pixels?
>
>

Yes I know every operation seems to work the same way.  It used to work on
LWW (or work differently).  I did not have the energy to bring it up with
Xanalys (its worth a bug report) and just got around it by writing my own
interface to the Windows GDI.

Wade