News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Animate region Project

Started by hfheatherfox07, March 28, 2012, 12:44:26 AM

Previous topic - Next topic

qWord

Seems like there are several bugs, or at least obscurities in your code: e.g. himages     db 71*71 dup(?) , add himage,71, ...  :dazzled:
Also, this one works, but is a unacceptable performance killer:
Quoteloop construct
    invoke GetPixel,var_hDC,var_X,var_Y
loop construct end
FPU in a trice: SmplMath
It's that simple!

hfheatherfox07

Quote from: qWord on April 01, 2012, 02:08:16 AM
Seems like there are several bugs, or at least obscurities in your code: e.g. himages     db 71*71 dup(?) , add himage,71, ...  :dazzled:
Also, this one works, but is a unacceptable performance killer:
Quoteloop construct
    invoke GetPixel,var_hDC,var_X,var_Y
loop construct end


I am sorry ...at the risk of sounding stuipd ...I don't get that "   invoke GetPixel,var_hDC,var_X,var_Y"

I should probably upload the example of animate bitmaps so you can see the source were
I am getting the 71 thing ....there are 71 images .....


hfheatherfox07

#17
I posting a reply but I t edited my second post  I tried it this way too...


ARRGGG back to the drawing board I just dot see it ..... am I doing the above right ? 

hfheatherfox07

#18
Quote from: qWord on April 01, 2012, 02:08:16 AM
Seems like there are several bugs, or at least obscurities in your code: e.g. himages     db 71*71 dup(?) , add himage,71, ...  :dazzled:
Also, this one works, but is a unacceptable performance killer:
Quoteloop construct
    invoke GetPixel,var_hDC,var_X,var_Y
loop construct end


OK you are right about the  "images     db 71*71 dup(?)"  there was no need for that ..... I took every body's advise and I am still stuck .....
what am I doing wrong now? I went back to the smaller animation .... if you comment out "call MakeRegion"  in "animate BMP with region" you will see the speed that it should be ...also an example with out region that will show the speed that it should be ... :'(
..... I also included a bitbit image example from an old MASM version.... how can I bitbit the image there without # values in the center of the screen .....

I have been using :

push rect.bottom
push rect.right

invoke BitBlt,hDC,0,0,rect.right,rect.bottom,hMemDC,0,0,SRCCOPY


how else can I do it ??

:(