Mirror

How to make the TJPEGImage component recognize the *.jpeg file extension (Views: 100)


Problem/Question/Abstract:

How to make the TJPEGImage component recognize the *.jpeg file extension

Answer:

{ ... }
var
  MyImage: TImage;
begin
  JPEG := TJPEGImage.Create;
  try
    JPEG.LoadFromFile('C:\TEMP\SOMEIMAGE.JPEG');
    MainImage.Picture.Assign(JPEG);
    MainImage.Invalidate;
  finally
    JPEG.Free;
  end;

<< Back to main page