Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi TList Einträge fehlen (https://www.delphipraxis.net/201728-tlist-eintraege-fehlen.html)

p80286 21. Aug 2019 12:33

AW: TList Einträge fehlen
 
Ich kenne mich mit dem Grafik-Kram nicht so aus, aber da beide nicht synonym sind wird es schon einen unterschied machen. Schau mal in die OH. War da nicht etwas mit virtueller Bitmap???

Gruß
K-H

tumo 21. Aug 2019 13:04

AW: TList Einträge fehlen
 
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.

peterbelow 21. Aug 2019 15:03

AW: TList Einträge fehlen
 
Zitat:

Zitat von tumo (Beitrag 1442444)
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...


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

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