VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Dicom.Mpr Namespace / MprImage Class / CreateCoronalSlice(Double) Method
Syntax Example Requirements SeeAlso
In This Topic
CreateCoronalSlice(Double) Method (MprImage)
In This Topic
Creates the coronal slice for the selected position in this MPR image.
Syntax
'Declaration

Public Function CreateCoronalSlice( _
ByVal yPosition
The position of the slice, in millimeters, on Y axis.
As Double _
) As MprPlanarSlice
public MprPlanarSlice CreateCoronalSlice(
double yPosition
)

Parameters

yPosition
The position of the slice, in millimeters, on Y axis.

Return Value

The coronal slice.
Example

This C#/VB.NET code shows how to create the coronal and sagittal slices of DICOM MPR image.


''' <summary>
''' Creates the coronal and sagittal slices for MPR image.
''' </summary>
''' <param name="mprImage">The MPR image.</param>
''' <param name="coronalSlice">The coronal slice.</param>
''' <param name="sagittalSlice">The sagittal slice.</param>
Public Shared Sub CreateCoronalAndSagittalSlices(mprImage As Vintasoft.Imaging.Dicom.Mpr.MprImage, ByRef coronalSlice As Vintasoft.Imaging.Dicom.Mpr.MprPlanarSlice, ByRef sagittalSlice As Vintasoft.Imaging.Dicom.Mpr.MprPlanarSlice)
    ' create the coronal slice
    coronalSlice = mprImage.CreateCoronalSlice(mprImage.YLength / 2.0)

    ' create the sagittal slice
    sagittalSlice = mprImage.CreateSagittalSlice(mprImage.XLength / 2.0)
End Sub


/// <summary>
/// Creates the coronal and sagittal slices for MPR image.
/// </summary>
/// <param name="mprImage">The MPR image.</param>
/// <param name="coronalSlice">The coronal slice.</param>
/// <param name="sagittalSlice">The sagittal slice.</param>
public static void CreateCoronalAndSagittalSlices(
    Vintasoft.Imaging.Dicom.Mpr.MprImage mprImage,
    out Vintasoft.Imaging.Dicom.Mpr.MprPlanarSlice coronalSlice,
    out Vintasoft.Imaging.Dicom.Mpr.MprPlanarSlice sagittalSlice)
{
    // create the coronal slice
    coronalSlice = mprImage.CreateCoronalSlice(mprImage.YLength / 2.0);

    // create the sagittal slice
    sagittalSlice = mprImage.CreateSagittalSlice(mprImage.XLength / 2.0);
}

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also