Forum: Multimedia
Delphi
by bytecook,
16. Aug 2016
Ja, es gibt sogar in einem meiner vorherigen Posts einen speziellen Link mit einer überladenen Methode für GR32 dazu. Siehe: https://delphigl.com/forum/viewtopic.php?f=14&t=7457&p=100071&hilit=graphics32#p100074
CTOP!
uses {$IFDEF GLB_DELPHI} Dialogs, Graphics, Types, GR32, {$ENDIF}
function TglBitmapData.AssignFromBitmap(const aBitmap: TBitmap32):...
Forum: Multimedia
Delphi
by bytecook,
16. Aug 2016
Deswegen würde ich eben Graphics32 nehmen...
1) Bild via LoadPng it ein TBitmap32 laden.
2) Bild auf gewünschte Größe resamplen. (Am besten je nach Geschmack/Quali mit einem Lanczos Resampler). Die meisten Lowlevel-Routinen in Gr32 sind SSE2 optimiert, also seeeehr schnell...
3) Verkleinertes Bild auf GlBitmap via Scanline übertragen. (Siehe...
Forum: Multimedia
Delphi
by bytecook,
16. Aug 2016
uses
...
Gr32,
GR32_Png,
GR32_PortableNetworkGraphic;
...
(** PNG - Routinen **)
function SaveAsPng (Const FileName : String; ABmp : TBitmap32) : Boolean;
Forum: Multimedia
Delphi
by bytecook,
16. Aug 2016
Würde Graphics32 (www.graphics32.org in Kombination mit (gr32_png) einsetzen.
Aktuelle GR32 Version: https://github.com/graphics32/graphics32 (Support inkl. 10.1 Berlin)
Aktuelles Png Lib: https://sourceforge.net/projects/gr32pnglibrary/
Damit hast du mal die Basis, GR32 arbeitet per se mit 24 Bit Farbtiefe + 8 Bit Alphachannel.
Du kannst auch jederzeit einem TBitmap32 ein "normales"...