![]() |
Re: Ram voll :-(
So bin gerade erst nach hause gekommen, aber hier nochmal alles aufgelistet:
Alter Code:
Delphi-Quellcode:
function split(SourceBitmap: TBitmap; width, height, left, top: integer): TBitmap;
var TargetBitmap: TBitmap; begin TargetBitmap:=TBitmap.Create; TargetBitmap.PixelFormat := pf32Bit; TargetBitmap.Width := width; TargetBitmap.Height := height; TargetBitmap.Canvas.copyrect(Rect(0,0,width,height), SourceBitmap.Canvas, Rect(left,top,left+width,top+height)); Result:=TargetBitmap; end; Neuer Code:
Delphi-Quellcode:
procedure split(TargetBitmap, SourceBitmap: TBitmap; width, height, left, top: integer);
begin TargetBitmap.PixelFormat := pf32Bit; TargetBitmap.Width := width; TargetBitmap.Height := height; TargetBitmap.Canvas.copyrect(Rect(0,0,width,height), SourceBitmap.Canvas, Rect(left,top,left+width,top+height)); end; |
Re: Ram voll :-(
Gibst du die Parameter TargetBitmap und SourceBitmap auch wieder frei, wenn du sie nicht mehr benötigst?
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:53 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz