[vtkusers] Re: vtkImageActor set position

Pankaj Daga deluded.soul at gmail.com
Tue Oct 3 06:20:34 EDT 2006


Hello again,

So I have tried hard to get this vtkImageActor to show on the screen. I have
another image and I am trying to draw on top of that image:

So, I have the following:

// overlayImage is a PNG image

actor = vtkImageActor::New();
actor->SetInput(overlayImage->GetOutput());
actor->PickableOn();
actor->SetDisplayExtent(0, im_width, 0, in_height, 0, 0);
actor->SetPosition(0, 0, 0);

Now what happens is that the whole screen goes black! My image is only 200,
200 and I want it to show over another image. How do I get it working?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061003/429890a1/attachment.htm>


More information about the vtkusers mailing list