Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Bitmap wird falsch gespeichert? (https://www.delphipraxis.net/83034-bitmap-wird-falsch-gespeichert.html)

turboPASCAL 25. Dez 2006 21:55

Re: Bitmap wird falsch gespeichert?
 
zB. so:

Delphi-Quellcode:
procedure Dingens(bmp32: TBitmap32; Filename: TFileName);
var bmp: TBitmap;
begin
  bmp := TBitmap.Create;
  bmp.PixelFormat := pf24Bit;
  bmp.Width := bmp32.Width;
  bmp.Height := bmp32.Height;
  bmp32.DrawTo(bmp.Canvas.Handle, 0, 0);
  bmp.SaveToFile(Filename);
  FreeAndNil(bmp); // bmp.Free;
end;

RobertP 26. Dez 2006 09:46

Re: Bitmap wird falsch gespeichert?
 
Delphi-Quellcode:
bmp.PixelFormat
Da hätt ich eigentlich auch draufkommen können...

Najo Danke, Problem gelöst :thumb:


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:11 Uhr.
Seite 2 von 2     12   

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