On 9/20/2010 6:40 PM, Hazen Babcock wrote: > Schwab,Wilhelm K wrote: >> 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?
I think it should be of interest and I would like to see an OpenGL driver to support it. It should be possible to have a very lightweight OpenGL driver supporting both non-interactive and interactive operation (say via a GLUT/FreeGLUT interface for maximum portability and minimum external dependencies). Still on my list to work on when I get enough round tuits.... --Chris > > I think that an alpha value would be a fine addition to the memory (mem) > driver, but the mem driver is pretty basic and unlikely to get improved > much as we would just be duplicating functionality provided by a number > of different 3rd party graphics libraries. You might also look at the > memcairo driver, as this already supports both alpha values and fills, > as well as unicode fonts, anti-aliasing and a bunch of other nice stuff. > Of course it requires installing the Cairo library which is not always > entirely straightforward depending on your OS. > > Could you describe a little bit more about what you want to do? It > sounds like you already have some sort of language bindings for > Smalltalk, but you'd like to use the graphs in some sort of GUI? On the > off-chance that the Smalltalk GUI is built on GTK I would look at the > extcairo driver, or if it is based on Qt then the extqt driver might be > an option. > > -Hazen > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel > > > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.851 / Virus Database: 271.1.1/3147 - Release Date: 09/20/10 > 02:35:00 > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel