开发者

VTK move image to center of the bounding box

开发者 https://www.devze.com 2023-02-09 23:02 出处:网络
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 m

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消