Hi Prasenjit,
I think you mean (maybe just a typo)
bmpWriter->SetInput( imageplaneWidget->GetTexture()->GetInput() )
If you scaled the widget up using ctrl+middle mouse for example,
the widget's internal vtkImageReslice fills in the areas of the plane
that do not reside within the bounds of the original data by default
with zeros. You could put in a feature request to the bug tracker
to change this behaviour.
Dean
Dear vtkusers,
I want to create a BMP image from Texture output of VTKImageplaneWidget.
I am using:
bmpWriter->SetInput->imageplaneWidget->GetTexture()->SetInput())
This works, but the image contains some zero values along the sides.
Please refer the attachment. The Black Border is unwanted.
PLEASE advice what I am doing wrong? OR what should I do to get a clean
image?
Many Thanks.
Prasenjit Roy
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQFollow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers