Lisp HUG Maillist Archive

Image masking, transparency, translucency

Is image masking supported by LispWorks?

I have JPEG and PNG images with a separate greyscale (0-255)  
transparency mask.

I need this to work on Mac OSX and Windows and I do not want to  
involve OpenGL.

     Thanks, Joel

--
http://wagerlabs.com/uptick




Re: Image masking, transparency, translucency

I should probably elaborate ...

I'm using LispWorks 4.4.5 on Mac OSX 10.4.2. I can simulate  
transparency by combining pixel values of source, target and mask  
images by hand. This works but is very slow.

CAPI let me create colors that include an alpha component. I tried  
setting the alpha value of every pixel in my source image from the  
mask image and then drawing the source image on top of the target.  
This is turns out to be 30% faster but the alpha channel is not being  
used.

Is the alpha channel in LispWorks just for show and how do I use it  
if it's not?

Does anyone know an easy cross-platform way of getting hold of raw  
pixel data in LispWorks?

I did this a few months ago but it required separate code for Cocoa  
and Windows.

     Thanks, Joel

On Aug 6, 2005, at 2:32 AM, Joel Reymont wrote:

> Is image masking supported by LispWorks?
>
> I have JPEG and PNG images with a separate greyscale (0-255)  
> transparency mask.
>
> I need this to work on Mac OSX and Windows and I do not want to  
> involve OpenGL.


Updated at: 2020-12-10 08:51 UTC