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);


Færdigheder: C programmering

Se mere: 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

Om arbejdsgiveren:
( 20 bedømmelser ) Spanish Fork, United States

Projekt-ID: #178918

Tildelt til:


This is easy and little time consuming task :)

$35 USD på 1 dag
(1 bedømmelse)

10 freelancers are bidding on average $52 for this job


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

$70 USD in 3 dage
(14 bedømmelser)

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 dage
(3 bedømmelser)

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 dage
(9 bedømmelser)

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 Mere

$70 USD in 0 dage
(4 bedømmelser)

Please see my PM. Regard.

$30 USD in 0 dage
(4 bedømmelser)

hi,i can [url removed, login to view] give [url removed, login to view]

$50 USD in 5 dage
(0 bedømmelser)

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

$60 USD in 2 dage
(0 bedømmelser)

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

$30 USD på 1 dag
(0 bedømmelser)

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

$50 USD in 15 dage
(0 bedømmelser)