Click here to Skip to main content
15,901,368 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Does anyone know flash? Pin
ThatsAlok25-May-05 18:34
ThatsAlok25-May-05 18:34 
QuestionHow to compress DICOM image to raw file format? Pin
Member 199230325-May-05 13:54
Member 199230325-May-05 13:54 
AnswerRe: How to compress DICOM image to raw file format? Pin
Christian Graus25-May-05 15:55
protectorChristian Graus25-May-05 15:55 
GeneralRe: How to compress DICOM image to raw file format? Pin
Member 199230325-May-05 19:45
Member 199230325-May-05 19:45 
GeneralRe: How to compress DICOM image to raw file format? Pin
Christian Graus25-May-05 19:47
protectorChristian Graus25-May-05 19:47 
GeneralRe: How to compress DICOM image to raw file format? Pin
Member 199230325-May-05 19:59
Member 199230325-May-05 19:59 
GeneralRe: How to compress DICOM image to raw file format? Pin
Christian Graus25-May-05 20:06
protectorChristian Graus25-May-05 20:06 
GeneralRe: How to compress DICOM image to raw file format? Pin
Member 199230325-May-05 20:25
Member 199230325-May-05 20:25 
This is how the program looks like. I need to write in that part of the program to display the black and white pixels when I run the program. I think this is where the pixels are stored. Please advise. Thank you.


void CMediVisionView::ReDraw()
{
int row, col;
int p, q, n;
int cx_position[6], cy_position[6];
unsigned int data;

BITMAPINFOHEADER infoHeader;
infoHeader.biSize = sizeof(BITMAPINFOHEADER);
infoHeader.biWidth = n_cols;
infoHeader.biHeight = n_rows;
infoHeader.biPlanes=1;
infoHeader.biBitCount= 24;
infoHeader.biCompression=0;
infoHeader.biSizeImage=0;
infoHeader.biXPelsPerMeter=0;
infoHeader.biYPelsPerMeter=0;
infoHeader.biClrUsed=0;
infoHeader.biClrImportant=0;

int xSize=::GetSystemMetrics(SM_CXSCREEN)-80;
int ySize=::GetSystemMetrics(SM_CYSCREEN);

CClientDC ClientDC(this); // Draw the Frame Lines first
FrameLines(&ClientDC);

if (n_rows== 256 && multiple_open) {
if(image_no == 1) {
cx_position[1] = posx512-4;
cy_position[1] = posy512;
}
else if(image_no == 2) {
cx_position[1] = posx512-4;
cy_position[1] = posy512;
cx_position[2] = posx512-4 + 256 + 3;
cy_position[2] = posy512;
}
else if(image_no == 3) {
cx_position[1] = posx512-4;
cy_position[1] = posy512;
cx_position[2] = posx512-4 + 256 + 3;
cy_position[2] = posy512;
cx_position[3] = posx512-4;
cy_position[3] = posy512 + 256 + 3;
}
else if(image_no == 4) {
cx_position[1] = posx512-4;
cy_position[1] = posy512;
cx_position[2] = posx512-4 + 256 + 3;
cy_position[2] = posy512;
cx_position[3] = posx512-4;
cy_position[3] = posy512 + 256 + 3;
cx_position[4] = posx512-4 + 256 + 3;
cy_position[4] = posy512 + 256 + 3;
}

for(int s=1;s<=image_no;s++) {
n = 0;
for(int p=0;p
GeneralRe: How to compress DICOM image to raw file format? Pin
Christian Graus26-May-05 11:26
protectorChristian Graus26-May-05 11:26 
GeneralRe: How to compress DICOM image to raw file format? Pin
Member 199230329-May-05 19:43
Member 199230329-May-05 19:43 
GeneralImplementing DirectX on Visual Studio.NET 2003 Arc. Enterprise and 2005 Pin
shatterstar645725-May-05 12:54
shatterstar645725-May-05 12:54 
GeneralRe: Implementing DirectX on Visual Studio.NET 2003 Arc. Enterprise and 2005 Pin
Christian Graus25-May-05 15:56
protectorChristian Graus25-May-05 15:56 
GeneralRe: Implementing DirectX on Visual Studio.NET 2003 Arc. Enterprise and 2005 Pin
shatterstar645726-May-05 6:25
shatterstar645726-May-05 6:25 
GeneralRe: Implementing DirectX on Visual Studio.NET 2003 Arc. Enterprise and 2005 Pin
Christian Graus26-May-05 11:43
protectorChristian Graus26-May-05 11:43 
Generalthe S in writelines Pin
anaidu25-May-05 12:50
anaidu25-May-05 12:50 
GeneralRe: the S in writelines Pin
Christian Graus25-May-05 15:58
protectorChristian Graus25-May-05 15:58 
GeneralBinary to ASCII Pin
heng098725-May-05 12:27
heng098725-May-05 12:27 
GeneralRe: Binary to ASCII Pin
Christian Graus25-May-05 15:59
protectorChristian Graus25-May-05 15:59 
GeneralRe: Binary to ASCII Pin
heng098731-May-05 4:40
heng098731-May-05 4:40 
GeneralRe: Binary to ASCII Pin
heng098731-May-05 10:33
heng098731-May-05 10:33 
GeneralGetting it to work in Windows 2000 and Windows XP Pin
droozenrule@yahoo.com25-May-05 11:05
sussdroozenrule@yahoo.com25-May-05 11:05 
GeneralRe: Getting it to work in Windows 2000 and Windows XP Pin
Ravi Bhavnani25-May-05 11:32
professionalRavi Bhavnani25-May-05 11:32 
GeneralRe: Getting it to work in Windows 2000 and Windows XP Pin
Graham Bradshaw25-May-05 12:27
Graham Bradshaw25-May-05 12:27 
GeneralRe: Getting it to work in Windows 2000 and Windows XP Pin
droozenrule@yahoo.com26-May-05 11:22
sussdroozenrule@yahoo.com26-May-05 11:22 
Questionhow to completely remove a menu item during run-time Pin
elephantstar25-May-05 10:31
elephantstar25-May-05 10:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.