Error processing SSI file
LEADTOOLS Medical (Leadtools.MedicalWebViewer.DICOMObjectRetrieve assembly)

Show in webframe

DoGetImage_gzip Method






The physical path of the DICOM file to extract the image from.
The SOP Instance UID of the DICOM object.
A 1-based number of the frame you want to retrieve from the image. Pass 0 to get a representative frame and -1 to get the complete image with all frames.
The width, in pixels, of the image. The returned image can have a different width (to preserve scale ratio). Pass 0 to keep the original width.
The height, in pixels, of the image. The returned image can have a different height (to preserve scale ratio). Pass 0 to keep the original height.
Gets an image from a DICOM object with gzip compression.
Syntax
protected byte[] DoGetImage_gzip( 
   string dicomFileName,
   string sopInstanceUID,
   int frameNumber,
   int imageWidth,
   int imageHeight
)
'Declaration
 
Protected Function DoGetImage_gzip( _
   ByVal dicomFileName As String, _
   ByVal sopInstanceUID As String, _
   ByVal frameNumber As Integer, _
   ByVal imageWidth As Integer, _
   ByVal imageHeight As Integer _
) As Byte()
'Usage
 
Dim instance As MedicalWebViewerObjectRetrieve
Dim dicomFileName As String
Dim sopInstanceUID As String
Dim frameNumber As Integer
Dim imageWidth As Integer
Dim imageHeight As Integer
Dim value() As Byte
 
value = instance.DoGetImage_gzip(dicomFileName, sopInstanceUID, frameNumber, imageWidth, imageHeight)

            

            
protected:
array<byte>^ DoGetImage_gzip( 
   String^ dicomFileName,
   String^ sopInstanceUID,
   int frameNumber,
   int imageWidth,
   int imageHeight
) 

Parameters

dicomFileName
The physical path of the DICOM file to extract the image from.
sopInstanceUID
The SOP Instance UID of the DICOM object.
frameNumber
A 1-based number of the frame you want to retrieve from the image. Pass 0 to get a representative frame and -1 to get the complete image with all frames.
imageWidth
The width, in pixels, of the image. The returned image can have a different width (to preserve scale ratio). Pass 0 to keep the original width.
imageHeight
The height, in pixels, of the image. The returned image can have a different height (to preserve scale ratio). Pass 0 to keep the original height.

Return Value

A buffer containing the image file (gzip).
Requirements

Target Platforms

See Also

Reference

MedicalWebViewerObjectRetrieve Class
MedicalWebViewerObjectRetrieve Members

Error processing SSI file