![]() |
TBitmap32 in TBitmap laden?
Hi,
wie kann ich eine TBitmap32 in eine normale TBitmap variable laden, ohne das Bild zu speichern? Normalerweise würde es ja so gehen, wenn es halt so gehen würde ;-)
Delphi-Quellcode:
Gibt es eine möglichkeit das zu machen?
var
bit:TBitmap; bit32TBitmap32; begin bit32.Assign(bit); end; mfg gandime |
Re: TBitmap32 in TBitmap laden?
Ja, mach es mit Draw oder
![]() |
Re: TBitmap32 in TBitmap laden?
was mache ich denn falsch?
Normalerweise nutze ich das nur um nen bild vom Desktop zu machen:
Delphi-Quellcode:
edit:
BitBlt(bit.Canvas.handle,0,0,bit32.Width,bit32.Height,bit32.Canvas.Handle,0,0,SRCCOPY);
geht doch hatte blos das vorher vergessen:
Delphi-Quellcode:
bit.Width:=bit32.Width;
bit.Height:=bit32.Height; |
Re: TBitmap32 in TBitmap laden?
Delphi-Quellcode:
:gruebel: Müsste es wohl heissen, wenn ich mich recht erinnere.
bit32.Handle
|
Re: TBitmap32 in TBitmap laden?
geht auch mit
Delphi-Quellcode:
bit32.Canvas.Handle
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:52 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