I wrote a gfx program that displays telescoped images of the mandelbrot set fractal in the client area of my window.
The program is written in masm32. How do I: (1) Save these displays to the hard drive as bitmaps?
wbaker@silverlink.net
Posted on 2002-02-19 14:40:09 by wbaker
Hi,

this text only how to captured screen to image file (and save) If you want any client area any coordinate use WM_MOUSE message and :


.if wParam == MK_LBUTTON

mov eax,lParam
mov ebx,eax
shr ebx,16
and eax,0ffffh
and ebx,0ffffh
mov dword ptr ,eax ; dwWidth
mov dword ptr ,ebx ; dwHeight
.endif
ret



you can use key byte for start coordinate and end coordinate.
like this:


.if wParam == MK_LBUTTON

xor byte ptr ,1
cmp byte ptr ,1
jz stopcoor
jmp startcoor


have nice days,
Posted on 2002-02-19 17:07:18 by CYDONIA
How does this relate to recruitment??? This belongs in The Heap... or maybe even the main page.
Posted on 2002-02-19 17:21:49 by SpooK
CYDONIA,
ARKADASHIM,
.
mov dwBPP,eax
.if (eax<=8)
invoke GetDeviceCaps,hdc,NUMCOLORS
mov dwNumColors,eax
mov dwNumColors,256
.else
mov dwNumColors,0
.endif
.
CAN BE REPLACED BY JUST,
.
mov dwBPP,eax
invoke GetDeviceCaps,hdc,NUMCOLORS
mov dwNumColors,eax
.
DEGIL MI?
CHOK TESHEKUER EDERIM.
wbaker@silverlink.net
Posted on 2002-03-12 10:43:43 by wbaker
:grin:

mov dwBPP,eax
invoke GetDeviceCaps,hdc,NUMCOLORS
mov dwNumColors,eax


nice idea. :grin: Thanks!

Bende tesekkur ederim!


:alright:
Posted on 2002-03-12 18:30:29 by CYDONIA
You bet!
Bir sey degil!
wbaker@silverlink.net
Posted on 2002-03-13 17:52:16 by wbaker