Dafür sind C-Funktionen erforderlich sowie das Analysieren der Header-Informationen ja nach Bildtyp (BMP/JPG/TIF ...).