![]() |
bitmap.pixelformat ausgeben
Sorry, wahrscheinlich blöde Frage aber ich finds nicht *g*
Wie kann ich mir das Pixelformat einer geladenen Bitmap ausgeben lassen ?? also quasi showmessage(bit.pixelformat), oder besser gesagt die umwandlung von pixelforma zu string?? |
Re: bitmap.pixelformat ausgeben
schreib dir doch ne Funktion:
Delphi-Quellcode:
nicht getestet
function pixelformattostring(pf:tpixelformat);
begin case pf of pf1bit: result:='1 Bit'; pf8bit: result:='8 Bit'; else result:='Pixelformat nicht gefunden'; end; end; |
Re: bitmap.pixelformat ausgeben
Ein Weg wäre natürlich über case, ein anderer, etwas generischerer (was für ein Wort :stupid: ):
Delphi-Quellcode:
ShowMessage(GetEnumName(TypeInfo(TPixelFormat), Integer(Bitmap.PixelFormat)));
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:42 Uhr. |
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