Thema: Delphi Canvas und Icons

Einzelnen Beitrag anzeigen

Hawkeye219

Registriert seit: 18. Feb 2006
Ort: Stolberg
2.227 Beiträge
 
Delphi 2010 Professional
 
#6

Re: Canvas und Icons

  Alt 5. Mai 2006, 22:19
Du kannst die Eigenschaft Graphic überprüfen:

Delphi-Quellcode:
if (Image1.Picture.Graphic = nil) then
  // kein Bild enthalten
else
  if (Image1.Picture.Graphic is TBitmap) then
    // bitmap
  else
    if (Image1.Picture.Graphic is TJPEGImage) then
      // jpg
    else
      ...
Gruß Hawkeye
  Mit Zitat antworten Zitat