> nZoom = 5
> nRect = 100/2/nZoom*nZoom
>
> hWnd.size((nRect - nZoom/2) * 2, (nRect - nZoom/2) * 2)
> hWnd.move(xmouse - (nRect - nZoom/2), ymouse - (nRect - nZoom/2))
>
> StretchBlt(
> hDC_TT, 0, 0, nRect * 2, nRect * 2,
>
hDC_SC,xmouse-nRect/nZoom,ymouse-nRect/nZoom,nRect/nZoom*2,nRect/nZoom*2)
>
> GetPixel(xmouse - 1, ymouse - 1)
I rewrite it based on the small rectangle:
nZoom = 5
nRect = 100/2/nZoom
hWnd.size( (nZoom*nRect-nZoom/2) * 2, (nZoom*nRect-nZoom/2) * 2)
hWnd.move(xmouse-(nZoom*nRect-nZoom/2),ymouse-(nZoom*nRect-nZoom/2))
dll.call("StretchBlt|ui i i i i ui i i i i ui",;;+
hDC_TT, 0, 0, nZoom*nRect*2, nZoom*nRect*2,;;+
hDC_SC, xmouse-nRect, ymouse-nRect, nRect*2, nRect*2,;;+
0xCC0020)
GetPixel(xmouse - 1, ymouse - 1)
BTW, I reread your post after my previous post last night.
Then, I realized that it's strikingly similar to my previous one (:I
must admit I didn't carefully read the post). So,
'nOff*-1' was actually '0 - nOff'?
I thought it was the typo of 'nOff-1' and what on earth minus one is
introduced here, apologies for that.
Sean
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/