←Select platform

DoGetImage_gzip Method

Summary

Gets an image from a DICOM object with gzip compression.

Syntax

C#
VB
C++
protected virtual byte[] DoGetImage_gzip( 
   string dicomFileName, 
   string sopInstanceUID, 
   int frameNumber, 
   int imageWidth, 
   int imageHeight 
) 
  
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() 
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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.