Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi CopyRect (https://www.delphipraxis.net/7145-copyrect.html)

LoL 3. Aug 2003 21:21


CopyRect
 
Hallo alle zusammen,

ich versuche ein Rechteck von einem Bild auszuschneiden und in einer anderen Datei zu speichern. Ich denke dafür kommt nur die Funktion CopyRect in Frage. Aber irgendwie fuzt des bei mir nicht so wirkich hier meine Source:

Delphi-Quellcode:
var rect : Trect;
    rect2 : Trect;
begin
  image1.Picture.Bitmap.Canvas.CopyRect(rect2,image2.Picture.Bitmap.Canvas,rect);
end;
was ist daran falsch?
es wurde schon mal gepostet aber nicht richtig geantwortet. bitte helf mir!

gruß christoph

Luckie 3. Aug 2003 21:41

Re: CopyRect
 
Wie wäre es, wenn du die TRECT-Strukturen mit Werten füllst? Wo her soll CopyRect denn sonst wissen, welche Bereiche es kopieren soll?

LoL 3. Aug 2003 21:59

Re: CopyRect
 
jo hast recht das wars wie dumm! :wall:

thx

gruß christoph


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:17 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