Hi David: I hope your change does not alter the memory layout for the mem driver. The point of this driver is that external programs can give plplot an image to 'decorate'. I've got routines that rely on a certain layout of memory for the mem driver--best to preserve that!
Regards, Doug [email protected] Software Engineer UCAR - COSMIC, Tel. (303) 497-2611 On Fri, 19 Jun 2009, David Gillard wrote: > I've been working with the mem driver. I need to be able to plot some data to > a subregion of an image in memory. Suppose for instance that you've set the > image memory to have dimensions 500 x 500, and you want to plot to a 200 x > 200 subregion of that memory with top left coordinate (60, 100). > > I can't see how to do this properly without modifying the source code, > because the memory for the subregion is not continuous. Right now, I've added > a c_plssubmem function to plcore.c which takes the dimensions and top left > coordinate of the subregion (provided plsmem is called prior), and modified > plD_line_mem in mem.c . > > Is there a better way to do this? If not, is this capability one that would > be good to have as part of the plplot source? > > > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
