Hi Olivier,
>>* When creating a bmp from a canvas I get an error reading it with gimp or xv >>saying: Invalid compression 1
>>* While creating a tiff I get an error saying: Invalid format 24bit
Maybe your X-System is not running on 24bit?
I get:
root.exe ERROR: unable to write file "test.tiff" - TIFF image format is
not supported.
>>* when creating gif (or others) in batch mode I get a crash in >>TASImage::DrawRectangle
Maybe your macro doesn't call DrawRectangle indirectly?
>>* the member functions Range() and TextNDC are available in all TVirtualPS >>derived classes, but not in the base class - which makes it hard to use them >>with TVirtualPS.
Yes, I have a TGMainFrame with a TRootEmbeddedCanvas. The popdown menu
contains: "Save ss ps", "Save as pdf" and "Save as svg". Depending on
user request I want to call a single function "SaveAs(TVirtualPS*vps)"
which saves the contents of the Canvas to a file. The function shouldn't
know abozut which kind of TVirtualPS I'm using. No I need something
weird like
if (dynamic_cast<TPostScript*>(vps))
dynamic_cast<TPostScript*>(vps).Range(....); and the same for TPDF and TSVG.
>>* TPDF and TPostScript behaves different when calling NewPage() before >>anything was put in the document (TPostScript seem to ignore the new page >>request, TPDF inserts an emty page)
Yes, I'll do it. I'll send you a private mail with more details.
>>* It would be nice if TVirtualPS derived classes would support writing it to a >>pipe instead of a file only. This would allow to send a postscript directly to >>a pipe (a2ps, lpr, etc)
Just allow a FILE* instead of a file-name in the constructor would be enough. (BTW an example can be found in TGTextEdit.
>>BTW: Independant of all critics: root 4.04/02 seems to work very well and >>behaves stable. I like the new version!
With TPostScript I'm happy for a long time. TPDF is new since some root 4.* I have never used it so far...
Thomas. Received on Mon May 09 2005 - 15:01:08 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:07 MET