void TASImage::GetZoomPosition(UInt_t &x, UInt_t &y, UInt_t &w, UInt_t &h) const
This is useful when the zoom has been done interactively using the mouse.
{
gROOT->SetBatch();
TCanvas *c = new TCanvas;
c->Divide(1,2);
TH1F *h = new TH1F("gaus", "gaus", 100, -5, 5);
h->FillRandom("gaus", 10000);
c->cd(1); h->Draw();
c->cd(2); h->Draw("c*");
c->Print("ccc1.gif");
TImage *img = TImage::Create();
img->FromPad(c);
img->WriteImage("ccc2.gif");
}
This version also fixes the color problem on BigEndian machines. On these machines (Mac and Solaris for instance) the color of the jpeg and png images saved from the "File" menu in a TCanvas were completely wrong.
Error in <TList::AddLast>: argument is a null pointer
Despite of the message the joined multigraph was correct.
Internally the loop on the input multigraph was one step too long.

ntuple->Draw("px:py:pz:px*px","","COLZ");