ImageGear23.Formats.Dicom Assembly > ImageGear.Formats.DICOM Namespace > ImGearMprProcessor Class > GetPlaneSize Method : GetPlaneSize(Int32,Int32,Int32,Int32,ImGearMprViewType,Boolean) Method |
'Declaration Public Overloads Function GetPlaneSize( _ ByRef x1 As Integer, _ ByRef y1 As Integer, _ ByRef x2 As Integer, _ ByRef y2 As Integer, _ ByVal viewType As ImGearMprViewType, _ ByVal rotateAxes As Boolean _ ) As IImGearSize
'Usage Dim instance As ImGearMprProcessor Dim x1 As Integer Dim y1 As Integer Dim x2 As Integer Dim y2 As Integer Dim viewType As ImGearMprViewType Dim rotateAxes As Boolean Dim value As IImGearSize value = instance.GetPlaneSize(x1, y1, x2, y2, viewType, rotateAxes)
public IImGearSize GetPlaneSize( ref int x1, ref int y1, ref int x2, ref int y2, ImGearMprViewType viewType, bool rotateAxes )
public: IImGearSize* GetPlaneSize( ref int x1, ref int y1, ref int x2, ref int y2, ImGearMprViewType viewType, bool rotateAxes )
public: IImGearSize^ GetPlaneSize( int% x1, int% y1, int% x2, int% y2, ImGearMprViewType viewType, bool rotateAxes )
E.g. if original stack of images represents axial view, then:
To get coronal view, y1 and y2 should be equal to each other.
To get sagittal view, x1 and x2 should be equal to each other.
Any other set of X and Y coordinates will produce oblique view.
The x1 and x2 values range from 0 to the original image's width.
The y1 and y2 values range from 0 to the original image's height.