Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi TBitmap32 in TBitmap laden? (https://www.delphipraxis.net/101265-tbitmap32-tbitmap-laden.html)

gandime 10. Okt 2007 15:42


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:
var
  bit:TBitmap;
  bit32TBitmap32;
begin
  bit32.Assign(bit);
end;
Gibt es eine möglichkeit das zu machen?


mfg
gandime

turboPASCAL 10. Okt 2007 15:48

Re: TBitmap32 in TBitmap laden?
 
Ja, mach es mit Draw oder Delphi-Referenz durchsuchenBitBlt.

gandime 11. Okt 2007 19:08

Re: TBitmap32 in TBitmap laden?
 
was mache ich denn falsch?
Normalerweise nutze ich das nur um nen bild vom Desktop zu machen:
Delphi-Quellcode:
BitBlt(bit.Canvas.handle,0,0,bit32.Width,bit32.Height,bit32.Canvas.Handle,0,0,SRCCOPY);
edit:
geht doch hatte blos das vorher vergessen:
Delphi-Quellcode:
  bit.Width:=bit32.Width;
bit.Height:=bit32.Height;

turboPASCAL 11. Okt 2007 19:34

Re: TBitmap32 in TBitmap laden?
 
Delphi-Quellcode:
bit32.Handle
:gruebel: Müsste es wohl heissen, wenn ich mich recht erinnere.

gandime 12. Okt 2007 16:42

Re: TBitmap32 in TBitmap laden?
 
geht auch mit
Delphi-Quellcode:
bit32.Canvas.Handle


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