S
shubiao123
Unregistered / Unconfirmed
GUEST, unregistred user!
begin begin nextonescreen:=TBitmap.Create; nextonescreen.Width:=13; nextonescreen.Height:=20; nextonedc:=GetDC(0); nextonescreenCanvas:=TCanvas.Create; nextonescreenCanvas.Handle:=nextonedc; nextonescreen.Canvas.CopyRect(Rect(0,0,13,20),nextonescreenCanvas,Rect(832,509,845,529)); //自 nextonescreen.PixelFormat:=pf4bit; nextoneresult:=True; nextonebmp:=loadbitmap(hinstance,'nextonepokeend'); img_nextonepoke.Picture.Bitmap.Handle:=nextonebmp; for nextonex:=4 to nextonescreen.Width-4 do begin for nextoney:=5 to nextonescreen.Height-13 do begin if nextonescreen.Canvas.Pixels[nextonex,nextoney]<>img_nextonepoke.picture.Bitmap.Canvas.Pixels[nextonex,nextoney] then begin nextoneresult:=false; end; end; end; if nextoneresult then begin tmr2_getnextpoke_data.Enabled:=True ; end else tmr2_getnextpoke_data.Enabled:=False; end; nextonescreen.Free; nextonescreenCanvas.Free; MessageBeep(1);end;请高手帮我看看这段代码为什么会出现存储空间不足呢?且光标指向nextoneresult:=True;,