Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Problem mit Bitmaps in Resource (Invalid Format) (https://www.delphipraxis.net/21485-problem-mit-bitmaps-resource-invalid-format.html)

CenBells 3. Mai 2004 17:44


Problem mit Bitmaps in Resource (Invalid Format)
 
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo Leute,

ich möchte alle meine Bitmaps, die ich in meinem Programm verwende in eine Resourcendatei auslagern.
Dazu habe ich mich an Sakuras Beitrag aus der Codelibrary erstellt.

Beim Compilieren bekomme ich aber bei einigen bildern die Meldung "Invalid Bitmap Format". Kann mir wer sagen, was ich bei dem angehängten bild falsch gemacht habe?

Gruß
Ken

StefanDP 3. Mai 2004 17:59

Re: Problem mit Bitmaps in Resource (Invalid Format)
 
hab ein bisschen getestet:
du hast eine bmp mit 32bit farbtiefe
mach einfach 16bit draus (z.b. mit paint...)
dann kanst du die res compilieren

mfg
stefan

CenBells 3. Mai 2004 18:13

Re: Problem mit Bitmaps in Resource (Invalid Format)
 
danke,

ich probier es eben aus

Gruß
Ken

CenBells 3. Mai 2004 18:22

Re: Problem mit Bitmaps in Resource (Invalid Format)
 
danke,

ich habe es mit photoshop getestet - und nicht hinbekommen
und mit windows paint kann ich es nur als 24 bit oder 256 farben bild speichern.
Was nehm ich dann?

also mit einem 256 farben bild klappt es, aber dann gehen informationen verloren. ;(

Gruß
Ken

CenBells 4. Mai 2004 14:55

Re: Problem mit Bitmaps in Resource (Invalid Format)
 
Hat jemand noch ne idee, woran das liegen könnte?

Gruß
Ken

Christian Seehase 4. Mai 2004 16:46

Re: Problem mit Bitmaps in Resource (Invalid Format)
 
Moin Ken,

irgendwie scheint MSPAINT das Format nicht von 32 auf 24 Bit umzuwandeln.
Wenn Du das mit IrfanView machst, klappt es.

CenBells 4. Mai 2004 17:12

Re: Problem mit Bitmaps in Resource (Invalid Format)
 
hallo,

danke, endlich klappt es.

Gruß
Ken


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:20 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