I have an existing implementation, written in Delphi, which converts the Cell's pixel data into an TBitmap, which is nothing but an encapsulation of Window's HBITMAP.
So, how can i use HBITMAP object (memory pointer) to convert into a DICOM file ?
I cannot use DCMTK's img2dcm class based design, as this class requires a file name.
I can actually store HBITMAP object on disk as a file and use this file to convert to DICOM, like this,
Code: Select all
Image2Dcm i2d;
I2DImgSource *inputPlug = new I2DBmpSource();
I2DOutputPlug *outPlug = new I2DOutputPlugSC();
E_TransferSyntax writeXfer;
inputPlug->setImageFile("File.bmp");
DcmDataset *dataset = NULL;
OFCondition result = i2d.convert(inputPlug, outPlug, dataset, writeXfer);
Is there any other helper classes (which i am not aware of) which can accept a BMP memory object and converts into a DICOM image ?