Em Andamento

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)

{

HDC hDC;

short nx, ny;

hDC = GetDC(h_MainWindow);

Rectangle(hDC,0,0,n_ParentVideoWidth,n_ParentVideoHeight);

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

Ver 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

Premiar a:

RavaSoftware

This is easy and little time consuming task :)

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

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

vip

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

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

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)
6.2
HussienSharaf

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)
4.5
andflyer

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)
3.8
dev2u

Please see my PM. Regard.

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

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

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

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

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

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

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

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