----------------------------------------------------------------------
| 33 | |
| 34 | //---------------------------------------------------------------------- |
| 35 | inline void mitkVtkLogoRepresentation::AdjustImageSize(double /*o*/[2], double borderSize[2], double imageSize[2]) |
| 36 | { |
| 37 | // Scale the image to fit with in the border. |
| 38 | // Also update the origin so the image is centered. |
| 39 | double r0 = borderSize[0] / imageSize[0]; |
| 40 | double r1 = borderSize[1] / imageSize[1]; |
| 41 | if (r0 > r1) |
| 42 | { |
| 43 | imageSize[0] *= r1; |
| 44 | imageSize[1] *= r1; |
| 45 | } |
| 46 | else |
| 47 | { |
| 48 | imageSize[0] *= r0; |
| 49 | imageSize[1] *= r0; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | //------------------------------------------------------------------------- |
| 54 | void mitkVtkLogoRepresentation::BuildRepresentation() |