GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / DicomIsMultiPage Method
GdPicture image identifier. The image to check.
Example





In This Topic
DicomIsMultiPage Method (GdPictureImaging)
In This Topic
Checks if a GdPicture image is a multipage DICOM image.
Syntax
'Declaration
 
Public Function DicomIsMultiPage( _
   ByVal ImageID As Integer _
) As Boolean
public bool DicomIsMultiPage( 
   int ImageID
)
public function DicomIsMultiPage( 
    ImageID: Integer
): Boolean; 
public function DicomIsMultiPage( 
   ImageID : int
) : boolean;
public: bool DicomIsMultiPage( 
   int ImageID
) 
public:
bool DicomIsMultiPage( 
   int ImageID
) 

Parameters

ImageID
GdPicture image identifier. The image to check.

Return Value

True if the image is a multipage DICOM image, else false.
Example
Testing whether a dicom document is multipage or not.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.dcm", false);
 
    if (gdpictureImaging.DicomIsMultiPage(imageID))
    {
        MessageBox.Show("Dicom is multipage.", "DicomIsMultiPage", MessageBoxButtons.OK, MessageBoxIcon.Information);
    }
    else
    {
        MessageBox.Show("Dicom is not multipage.", "DicomIsMultiPage", MessageBoxButtons.OK, MessageBoxIcon.Information);
    }
 
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also