Load the bitmap from the specified bmpPath and convert the RGB pixels to monochrome data for this dataset.
Set mandatory Group 0028 image related parameters. Give image a new sop instance uid.
Namespace: LaurelBridge.DCF.Examples.BitmapToDicom
Assembly: BitmapToDicom (in BitmapToDicom.exe) Version: DCF34 r11538 DCF_3_4_24_20190319
Syntax
C#
public void LoadMonoBitmap( string bmpPath, bool blackIsZero, bool signedPixels, int monoStored, int monoAllocated )
Parameters
- bmpPath
- Type: SystemString
the path to the bitmap file - blackIsZero
- Type: SystemBoolean
true if pixel data is MONOCHROME2, else MONOCHROME1 - signedPixels
- Type: SystemBoolean
true if pixel data is signedPixels - monoStored
- Type: SystemInt32
bits stored - monoAllocated
- Type: SystemInt32
bits allocated
See Also