Hi Hazen:

The original 'mem' driver plotted into an unsigned char array with size 
3 x height x width (thus no alpha channel).  The cairo drivers plot into 
32 bit RGB arrays (with an alpha channel).  For the memcairo driver (as a 
first cut), I just copied in the 24 bits of RGB info into the 32 bit 
RGB/alpha words, leaving the alpha channel 0.  When cairo is done with its 
magic, the 32bit RGB/alpha words are copied back into a 24 bit RGB array.

I'd like to figure out how to get my graphics package to work with an 
alpha channel and add an option to pass in 32 bit RGB/alpha words.

Regards,

   Doug

[EMAIL PROTECTED]
Software Engineer III
UCAR - COSMIC, Tel. (303) 497-2611

On Wed, 12 Mar 2008, Hazen Babcock wrote:

>
> On Mar 12, 2008, at 11:34 AM, Doug Hunt wrote:
>
>> Hi again, Hazen, all:  I just noticed that the patch I sent contains a bug. 
>> I used malloc where I ought to have used calloc in one place.
>> 
>> Would it be possible for me to get SVN access so I can just fix this 
>> myself?  I'd also like to look into the possibility of adding optional 
>> alpha channel support for the memcairo driver in the future.
>
> memcairo doesn't already have alpha channel support? All the other cairo 
> drivers do since they use shared drawing functions.
>
> I'll defer your question re SVN access to one of the project administrators, 
> though I suspect that it won't be a problem.
>
> -Hazen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to