swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Raw File
Tip revision: 020eff3b2769a556ec2d1702e68309543c13e9bc authored by Unknown Author on 23 January 2004, 16:34:16 UTC
This commit was manufactured by cvs2svn to create tag 'v3-10-01a'.
Tip revision: 020eff3
rose_image.C
void rose_image()
{
   // Display image in a new canvas and pad.

   TImage *img = TImage::Open("rose512.jpg");
   if (!img) {
      printf("Could not create an image... exit\n");
      return;
   }

   img->SetConstRatio(0);
   img->SetImageQuality(TAttImage::kImgBest);
   img->Draw("N");
}
back to top