This patch adds rasters to the idraw output format of pstoedit. It adds an Image::writeIdrawImage method that gets used by a new drvIDRAW::show_image method. To apply this patch, cd to the top-level directory of an unpacked pstoedit source distribution, then type: patch D_idraw( "idraw","Interviews draw format","idraw", false, // if backend supports subpathes, else 0 *************** *** 1032,1038 **** true, // if backend supports curves, else 0 true, // if backend supports elements with fill and edges true, // if backend supports text, else 0 ! false, // if backend supports Images DriverDescription::normalopen, false); // if format supports multiple pages in one file --- 1043,1049 ---- true, // if backend supports curves, else 0 true, // if backend supports elements with fill and edges true, // if backend supports text, else 0 ! true, // if backend supports Images DriverDescription::normalopen, false); // if format supports multiple pages in one file Index: src/drvidraw.h diff -c src/drvidraw.h:1.1 src/drvidraw.h:1.2 *** src/drvidraw.h:1.1 Wed Oct 6 10:32:29 1999 --- src/drvidraw.h Mon Nov 8 16:24:12 1999 *************** *** 52,59 **** --- 52,67 ---- return (unsigned int) (invalue/IDRAW_SCALING + 0.5); } + private: + + int objectId; + TempFile tempFile; + ofstream &buffer; + int imgcount; + #include "drvfuncs.h" + void show_image(const Image & imageinfo); }; #endif Index: src/image.h diff -c src/image.h:1.1 src/image.h:1.2 *** src/image.h:1.1 Wed Oct 6 10:32:32 1999 --- src/image.h Mon Nov 8 16:24:12 1999 *************** *** 47,52 **** --- 47,53 ---- } ~Image() { delete [] data; data = 0; nextfreedataitem = 0;} void writeEPSImage(ostream & outi) const; + void writeIdrawImage(ostream & outi, float scalefactor) const; void getBoundingBox(Point & ll_p, Point & ur_p) const { ll_p = ll; ur_p = ur; } void calculateBoundingBox();