How to put an jpeg or gif image in the middle of an histo?

Hello,

I am trying to put on top of a plot (containing histograms)
in a Canvas a JPEG image (a logo) to sign the name of the collaboration.

There is a tutorial for this at:

root.cern.ch/root/html/examples/ … age.C.html

but I can’t succeed to find how to precisely localize the image
and change its size so that the plot doesn’t vanish.

Thanks in advance
Vincent.

you can look at the example: $ROOTSYS/img2pad.C

Attached is an example.


atlas.C (966 Bytes)

Thanks a lot Olivier that’s just what I need

regards
Vincent