![]() |
Glyph des SpeedButtons in ein Picture schreiben
Ich würde gerne das Glyph eines SpeedButtons als Picture/Bitmap zur verfügung haben (dabei wird es auch noch resized).
Wie funktioniert das :D |
Re: Glyph des SpeedButtons in ein Picture schreiben
Öhm hallo? Was ist dein Problem?
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var test: TBitmap; test1: TPicture; begin test := TBitmap.Create; test := SpeedButton1.Glyph; //etc pp... test1.Bitmap := test; end; |
Re: Glyph des SpeedButtons in ein Picture schreiben
Ja das hatte ich auch, aber ich muss es resizen.
Und da kenne ich die Funktion "StrechDraw" ;) Das ist das Problem. |
Re: Glyph des SpeedButtons in ein Picture schreiben
Ja... und? Ich weiß immer noch nicht was genau du wissen möchtest, ist es dir nicht möglich eine eindeutige Frage zu stellen oder stehe ich grad auf dem Schlauch?
|
Re: Glyph des SpeedButtons in ein Picture schreiben
Delphi-Quellcode:
Okay sry: Ich brauche eine TGraphic... Und die krieg ich nicht von TBitMap.
BitMap.Canvas.StrechDraw(Rect(0,0,20,20), <TGraphic>)
|
Re: Glyph des SpeedButtons in ein Picture schreiben
TBitmap ist eine TGraphic:
Delphi-Quellcode:
...StretchDraw(Rect(0,0,20,20), SpeedButton1.Glyph);
|
DP-Maintenance
Dieses Thema wurde von "SirThornberry" von "Object-Pascal / Delphi-Language" nach "VCL / WinForms / Controls" verschoben.
|
Re: Glyph des SpeedButtons in ein Picture schreiben
Ah okay ;)
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:26 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