I’d like to put a logo image onto a histogram. I have tried to use TImage and it works except it makes from my inserted EPS vector graphics a bitmap. Is there some way to keep the image in vector format? Perhaps to convert it to some ROOT vector drawing definition first or something like that?
do you mean conversion EPS to ROOT graphical primitives?
Rene just explained me your problem.
The resolution of image was changed because original image (tmva_logo.gif)
was scaled by factor of ~10.
An image can be saved in PS file only as an array of pixels.
There is no possibility to “extract” vector objects from an image.
I can only suggest you to try to draw tmva_logo with ROOT graphics primitives.
Yes, converting EPS to ROOT graphical primitives would be exactly what I need. Is it possible?
for that a PostScript interpreter needed.
It is probably possible to create a “plugin” based on
Ghostscript interpreter pages.cs.wisc.edu/~ghost/
or some other one like cs.usfca.edu/~parrt/course/6 … cript.html
but even having it, ROOT graphics lack of some basic PostScript primitives,
e.g. bezier curves.
TASIMage has already the logic to import from an eps file, ie converting from vector graphics to pixmap. This conversion (via libAfterImage) is certainly done using vector graphics too.