[vtkusers] Re: Does vtkImageCanvasSource2D only allow greyscale?
Eduardo Kortright
eduardo at cs.uno.edu
Wed Sep 18 12:54:29 EDT 2002
I forgot to mention that you should also use the canvas source method
SetDrawColor with three arguments to set the RGB color that you want to draw
in.
--
Eduardo Kortright Department of Computer Science
eduardo at cs.uno.edu University of New Orleans
Phone: (504) 280-6626 Lakefront Campus
Fax: (504) 280-7228 New Orleans, LA 70148
----- Original Message -----
From: "Eduardo Kortright" <eduardo at cs.uno.edu>
To: <vtkusers at public.kitware.com>
Sent: Wednesday, September 18, 2002 11:50 AM
Subject: Re: Does vtkImageCanvasSource2D only allow greyscale?
> Hi Brent,
>
> I ran into the same question before. If you look at the documentation for
> the class, you will see that vtkImageCanvasSource2D is a subclass of
> vtkStructuredPoints. In that class there is a method for setting the
scalar
> type and the number of scalar components. Just set the number of scalar
> components to three and you should be able to see color using a
> vtkImageViewer to display your image.
>
> Hope this helps!
>
> --
> Eduardo Kortright Department of Computer Science
> eduardo at cs.uno.edu University of New Orleans
> Phone: (504) 280-6626 Lakefront Campus
> Fax: (504) 280-7228 New Orleans, LA 70148
>
>
> > Date: Tue, 17 Sep 2002 10:36:39 -0700 (PDT)
> > From: Brent Yokota <b.yokota at mambo.mat.ucsb.edu>
> > To: vtkusers at public.kitware.com
> > Subject: [vtkusers] Does vtkImageCanvasSource2D only allow greyscale?
> >
> > Does vtkImageCanvasSource2D only allow greyscale?
> >
> > If I need color 2D what should I use?
> >
> > Thanks in advance,
> > Brent
>
More information about the vtkusers
mailing list