Hi everybody, I need to be able to fill an arbitrary area with a color. I've tried to use PaintPolyLine on a TPolyLine, but I don't manage to define in a correct way a TPolyLine, I guess since I don't know what to write for the "option" (cannot find any example in the Users Guide). If anybody could give me hints how to get the attached macro working I would be very glad... Cheers, / Christian Hansen # include <math.h> # include <iostream.h> # include <TMath.h> void test() { Int_t n = 5; Double_t x[5] = {0.,1.,2.,0.,0.}; Double_t y[5] = {0.,0.,1.,1.,0.}; //TPolyLine pl = new TPolyLine(n, x, y, "F"); TPolyLine pl = new TPolyLine(); pl->PaintPolyLine(n,x,y,"F"); }
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:58 MET