![]() |
AW: Screenshot aber wie?!
So.... ich habs ma gekürzt...
Code:
funktioniert ... is zwar kein png aber ... okay
R.TopLeft := Form1.BoundsRect.TopLeft;
R.BottomRight := Form1.BoundsRect.BottomRight; MyDC := GetDC(Self.Handle); MyBitmap := TBitmap.Create; MyBitmap.Width := R.Right - R.Left; MyBitmap.Height := R.Bottom - R.Top; try MyBitmap.LoadFromDevice(MyDC); MyBitmap.SaveToFile('FormsAppearance.bmp'); finally ReleaseDC(Self.Handle, MyDC); FreeAndNil(MyBitmap); end; wenn ihr mir jetzt verraten würdet wie ich ca 2 fingerbreit unten das bild kürzen könnte (weil ich nicht das ganze fester bracuhe sondern von der höhe nur ca 2/3 währe echt super von euch .... sry meine unwissenheit |
AW: Screenshot aber wie?!
Wie schon erwähnt
Delphi-Quellcode:
macht in einer Zeile was du in zwei machst.
R := Form1.BoundsRect;
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:46 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 by Thomas Breitkreuz