Leadtools.Dicom Namespace > DicomPrintScu Class : CreatePresentationLut Method |
public void CreatePresentationLut( DicomDataSet presentationLut, string presentationLutShape )
'Declaration Public Sub CreatePresentationLut( _ ByVal presentationLut As DicomDataSet, _ ByVal presentationLutShape As String _ )
'Usage Dim instance As DicomPrintScu Dim presentationLut As DicomDataSet Dim presentationLutShape As String instance.CreatePresentationLut(presentationLut, presentationLutShape)
public void CreatePresentationLut( DicomDataSet presentationLut, string presentationLutShape )
function Leadtools.Dicom.DicomPrintScu.CreatePresentationLut( presentationLut , presentationLutShape )
public: void CreatePresentationLut( DicomDataSet^ presentationLut, String^ presentationLutShape )
Exception Type | Condition |
---|---|
DicomExceptionCode.PrintSCUFailureStatus | The response of the Print SCP specifies a Failure status code; no Instance was created. |
DicomExceptionCode.PrintSCUClassNotSupported | The Presentation LUT SOP Class is not supported on the Association. |
The method will fail if none of the parameters is supplied. If both are supplied, presentationLutShape will be ignored.
The method will not return until it receives the response of the Print SCP, or an error occurs. The method GetLastOperationStatus can be used to obtain the status code specified in the response of the Print SCP. If the method CreatePresentationLut is successful, the Presentation LUT was created successfully, with either a Success or Warning status code in the response of the Print SCP.
The method can be used to create one or more Presentation LUTs. Having a Presentation LUT created, the method GetPresentationLutInstanceUid can be used to obtain its SOP Instance UID, which in turn can be used to reference the Presentation LUT from Film Boxes and Grayscale Image Boxes. Refer to the methods CreateFilmBox, UpdateFilmBox, and UpdateImageBox.
The Print SCP can be requested to delete an existing Presentation LUT SOP Instance using the method DeletePresentationLut.