show an image (TASImage) in a ROOT canvas
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... exitn");
return;
}
img->SetConstRatio(0);
img->SetImageQuality(TAttImage::kImgBest);
img->Draw("N");
}
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.