Closed aaronsimon2 closed 7 years ago
You mean the problem is the square and the lines overlaid on the image? I am not sure I understand the problem. Your code looks ok except I don't know what phantomFile.Text is. I'm assuming it is a bmp file.
The image has been cut and half of it has been put on the other side. When i save the image before i convert it to a byte array it turns out as it should. I can't send a picture of what it should look like because i'm not at work just now but the right hand side of the picture should be on the left.
and yes, phantomFile.text is the text inside the image selector box
I can't help on this issue without some more info. I need to see what it looks like, and also it would be great if I could get an anonymized file I could debug.
Hi Rex. Thanks for the reply. I actually managed to fix this problem. The problem was that the header of the BMP file was being included in the pixel data. I just removed the header from the start and it worked fine!
I am putting the data from a bitmapped image into my DICOM and it turns out like this. Thanks!
This is the relevant code.