Gets an image from a DICOM object with gzip compression.
protected byte[] DoGetImage_gzip(
string ,
string ,
int ,
int ,
int
)
'Declaration
Protected Function DoGetImage_gzip( _
ByVal As String, _
ByVal As String, _
ByVal As Integer, _
ByVal As Integer, _
ByVal 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^ ,
String^ ,
int ,
int ,
int
)
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).