fix: fix rotate image zoom bug

This commit is contained in:
kradchen
2025-07-21 16:47:09 +08:00
parent 8e4f1f5db5
commit 5fb95123ab

View File

@@ -702,6 +702,7 @@ void DicomImageView::rotateImage(double angle, TransFormType operation) {
resetPanZoom();
mImageViewer->GetRenderer()->GetActiveCamera()->Roll(angle);
mCurrentRAngle=(mCurrentRAngle+(int)angle)%360;
resetPanZoom();
//to avoid black out problem during slicing
//slcing is related with rotation, you have to recalculate to get it right
mImageViewer->GetRenderer()->ResetCameraClippingRange();