AW: TImage.Refresh in Lazarus
|
AW: TImage.Refresh in Lazarus
und evtl mal in die canvas.inc gucken, evtl hilft im Draw ein Changing und Changed wie im DrawFocusrect
Delphi-Quellcode:
Procedure TCanvas.Draw(X, Y: Integer; SrcGraphic: TGraphic);
var ARect: TRect; begin if not Assigned(SrcGraphic) then exit; ARect:=Bounds(X,Y,SrcGraphic.Width,SrcGraphic.Height); StretchDraw(ARect,SrcGraphic); end; {-----------------------------------------------} {-- TCanvas.DrawFocusRect --} {-----------------------------------------------} procedure TCanvas.DrawFocusRect(const ARect: TRect); begin Changing; RequiredState([csHandleValid]); LCLIntf.DrawFocusRect(FHandle, ARect); Changed; end; |
AW: TImage.Refresh in Lazarus
Ich möchte nicht wieder voreilig sein, aber ich glaube, es funktioniert jetzt.
In Graphics.pp habe ich folgenden Hinweis gefunden:
Delphi-Quellcode:
Und wenn ich jetzt das Kopieren in die Scanlines tatsächlich innerhalb von TBitmap.BeginUpdate und TBitmap.EndUpdate ausführe, wird das Bild aktualisiert ausgegeben.
property ScanLine[Row: Integer]: Pointer read GetScanLine; platform; // Use only when wrpped by a begin/endupdate
Nebenbei habe ich Folgendes in win32object.inc gefunden :-D
Delphi-Quellcode:
Vielen Dank nochmal für Eure Hilfe !
procedure TWin32WidgetSet.DCRedraw(CanvasHandle: HDC);
begin // TODO: implement me! end; Gruß C.A. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:26 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz