Read and Display Bitmap with VC++ 6

This problem is probably really easy for someone with VC++ 6 experience.

I have an old program that I am trying to decipher (I am not a VC++6 programmer) so I am not sure exactly how the bitmap stuff works. But what I need to do is the following

1) Read as 32bit GrayScale or monochrome bitmap from a file;

2) Reduce it to 16 Bit;

3) Display it with the following function

So basically I need to get the reduced 16 bit data and placed in the UCHAR *ViewBuff like this

ShowCapturedPrint(0,0,640,480,ViewBuff );

See attached bitmap file


// function: ShowCapturedPrint

// parameters: none

// return value: none

// purpose: show the last live print


void ShowCapturedPrint(short xoff, short yoff, short Width, short Height, UCHAR *ViewBuff)



short nx, ny;

hDC = GetDC(h_MainWindow);


for(nx = xoff; nx<Width+xoff; nx++)


for(ny = yoff; ny<Height+yoff; ny++)


if(ViewBuff[nx + ny*Width] != 0)

SetPixel(hDC, nx, ny, RGB(0,0,0)); // offset the picture by the cropping values



ReleaseDC(h_MainWindow, hDC);


Habilidades: Programação C

Veja mais: bitmap, display bitmap, show bitmap, bitmap display, read bitmap, display bitmap file, read bmp, display bmp vc6, display bitmap view, bit bitmap sample program, display bmp, setpixel vc6, load bitmap, bit bitmap display, bitmap vc6, bitmap program, old programmer, bit problem, hdc read bitmap, vc6 view bitmap file, loadbitmap file picture, read display image, add bitmap, bitmap reduce size vc6, read rgb values bmp

Acerca do Empregador:
( 20 comentários ) Spanish Fork, United States

ID do Projeto: #178918

Concedido a:


This is easy and little time consuming task :)

$35 USD em 1 dia
(1 Comentário)

10 freelancers estão ofertando em média $52 para esse trabalho


Hello, can be done please chek pm. regards, yurii

$70 USD in 3 dias
(14 Comentários)

Hi, If you have seen our bid message, kindly send a PM and we will get into a discussion. thank you.

$50 USD in 5 dias
(3 Comentários)

hi, i have made many programs that reads BMP files and apply filters and compression algorithms. so i can help u efficiently. Best regards, Hussien Sharaf

$70 USD in 3 dias
(9 Comentários)

Hello, I have an experience with VC6 and I can do it quickly. If you have some sources, send me them please. I'll fix them and make ready project. If you have no them, I'll use my own. Thanks, Andrey. PS. Paym Mais

$70 USD in 0 dias
(4 Comentários)

Please see my PM. Regard.

$30 USD in 0 dias
(4 Comentários)

hi,i can [login to view URL] give [login to view URL]

$50 USD in 5 dias
(0 Comentários)

I could give you the result at this weekend. Thank you!

$60 USD in 2 dias
(0 Comentários)

Hi,I have the similar code.I'm ready to start working on your project right [login to view URL] Regards.

$30 USD em 1 dia
(0 Comentários)

Hi Sir. I'm ready to do it for you. You can count on me. Let's get started.

$50 USD in 15 dias
(0 Comentários)