Thema: Delphi tbitmap kann nur bmp

Einzelnen Beitrag anzeigen

Namenloser

Registriert seit: 7. Jun 2006
Ort: Karlsruhe
3.724 Beiträge
 
FreePascal / Lazarus
 
#9

Re: tbitmap kann nur bmp

  Alt 23. Jul 2007, 17:22
Zitat von Robert Marquardt:
Eine TBitmap kann wirklich nur BMP. Man braucht ein TPicture um verschiedene Formate handhaben zu koennen.

Aus der Delphi-Hilfe:
"TPicture is a TGraphic container, used to hold a graphic, the type of which is specified in the Graphic property. It is used in place of a TGraphic if the graphic can be of any TGraphic class. LoadFromFile and SaveToFile are polymorphic."

TGraphic-Formate kann man nachinstallieren. Die JVCL macht das z. B. fuer .ani-Cursors und fuer .gif.
Ich meine aber, ich hätte mal ohne Probleme eine jpeg-Datei in ein Tbitmap laden können, nur indem ich die Unit jpeg eingebudnen hatte . Also ohne den Umweg mit Assign.
  Mit Zitat antworten Zitat