From: Schwab,Wilhelm K <bschwab@an...> - 2010-09-20 16:08:57
First, are any of you using plsmem() to obtain graphs w/o saving them to a file? Encouragement in the form of success stories or warnings of trouble spots would be greatly appreciated.
Another question that has arisen come in the form of image formats readily understood by the Smalltalk environment I am using, called Pharo and available at http://pharo-project.org/home. I am still struggling slightly to understand the various twists, but it appears that it is willing readily absorb images made up of RGB and an alpha value (4 bytes per pixel instead of 3).
If I am reading thing correctly, I could allocate an array of RGB values, let PLplot draw on it, then use a C function to copy the memory into RGB+Alpha array for Pharo. Could Smalltalk do the memory manipulation? Yes, but there are usually great speed gains to be had by doing such looping in C, regardless of the details of how that is accomplished.
The question for you is whether adding an alpha value has any interest to the future of PLplot?
From: Schwab,Wilhelm K <bschwab@an...> - 2010-09-20 20:56:50
I had found the thread, but had not noticed that you had posted a demo; I have that source now. It sounds like it works, but not particularly well and does not do fills. Is that fair? FWIW, if the memory driver were to use, conditionally or otherwiwse, RGBA, my life might get a little easier - not that it should matter too much.
Perhaps a more accurate statement is that the cleaner it can be to use RGBA data, the better binding I should be able to release for Pharo. Most likely I will start with a hack and then worry about whether or not it can be packaged for wide use.
From: simon@... [simon@...]
Sent: Monday, September 20, 2010 2:35 PM
To: Schwab,Wilhelm K
Cc: plplot-devel@...; plplot-general@...
Subject: Re: [Plplot-general] plsmem(), RGB+alpha vs. RGB?
> First, are any of you using plsmem() to obtain graphs w/o saving them to a
> file? Encouragement in the form of success stories or warnings of trouble
> spots would be greatly appreciated.
There was some discussion on the mailing list a while ago. I was adding
the plsmem capability to the python drivers.
Thread and demo here, if you haven't already found it:
I never did the overlay stuff I intended....