HI everyone
I'm trying to continue the ImportFromBitmap Plugin development , this plugin has a limitation because only load 24 Bit RGB Images, and in Dicom there are many machines that only load 8 bit grayscale images.
For this purpose I 'm working with 8bpp PixelFormat but something si wrong at the moment I display the image and I'm Doing this at the moment to convert.
BitmapData data = image.LockBits(new Rectangle(0, 0, columns, rows), ImageLockMode.ReadOnly, image.PixelFormat);
stride = data.Stride;
for (int i = 0; i < rows; i ++)
Marshal.Copy(new IntPtr(bmpData.ToInt64() + (i * stride)), pixelData, i * stride, stride);
return pixelData;
this is the data that goes to :
dicomFile.DataSet[DicomTags.PixelData].Values
I would like to know if someone knows about how can be solved this issue
thanks to all..
Kmilo