Delphi XE2: Error F1026 for jpeg and pngimg units

    • Offizieller Beitrag

    If you get the compiler error

    F1026 file not found for the jpeg or pngimage unit, please make sure to add the package vclimg, (in case you are using packages or building the designtime package)

    Then also specify the proper namesspace which is VCL.Imaging.

    Instead of just write "jpeg" in uses, write

    "{$IFDEF VER230} VCL.Imaging.Jpeg {$ELSE} Jpeg {$ENDIF}"

    Regards,
    WPCubed Support