Thema: Delphi TList Einträge fehlen

Einzelnen Beitrag anzeigen

peterbelow

Registriert seit: 12. Jan 2019
Ort: Hessen
672 Beiträge
 
Delphi 11 Alexandria
 
#13

AW: TList Einträge fehlen

  Alt 21. Aug 2019, 15:03
oh,
Zitat:
Use Bitmap to reference the picture object when it contains a bitmap. If Bitmap is referenced when the picture contains a Metafile or Icon graphic, the graphic won't be converted. Instead, the original contents of the picture are discarded and Bitmap returns a new, blank bitmap.
Offenbar zählt eine JPEG als Metafile. Das erklärt es dann doch ein wenig.
Das Zitat ist etwas out of date. TPicture.Bitmap gibt nur dann auch das in TPicture geladene Objekt zurück, wenn das ein TBitmap ist, ansonsten wirft es den Inhalt weg und erzeugt eine neue, leere TBitmap. TPicture.Metafile und .Icon machen das analog. Nur die Graphic-Property gibt immer den geladenen Inhalt zurück, wenn es einen gibt (sonst nil).

Das ist wohl noch Delphi 1 Erbe, damals konnte Windows (3.x) halt nur drei Grafikformate...
Peter Below
  Mit Zitat antworten Zitat