VTK move image to center of the bounding box
How can I move my image which is in the bottom left of the bounding box to center of the 开发者_如何学JAVAbox? Also I want to maximize the size of the image that fits to the bounding box.
What do you mean by "bounding box"? If you are using a vtkImageSlice, you can just use SetPosition(-width/2, -height/2, 0).
精彩评论