Convert JPG to BMP

With this procedure below you can convert JPT to BMP.

Procedure ConvertJPGtoBMP;
var
jpeg: TJPEGImage;
bmp: TBitmap;
Begin
jpeg:= TJPEGImage.Create;
try
jpeg.LoadFromFile( filename );
bmp:= TBitmap.Create;
try
bmp.Assign( jpeg );
bmp.SaveTofile( ChangeFileExt( filename, ‘.BMP’ ));
finally
bmp.free
end;
finally
jpeg.free
end;
end;

Incoming search terms:

  • jpg to bmp delphi
  • delphi jpg to bmp
  • jpegtobmp stream delphi
  • JPEG to BMP delphi
  • how to convert tiff to jpeg in delphi
  • delphi jpg to bmp stream
  • delphi jpeg to bmp
  • delphi jpeg bitmap
  • delphi converter bmp em jpg
  • delphi convert jpg to bmp JPEG error #52
This entry was posted in Graphics. Bookmark the permalink.

One Response to Convert JPG to BMP

  1. Bazz says:

    I am new to using graphics fields especially in my database programs and had struggled to understand how to load a Jpeg image into a DBGraphic field.
    Thanks to your tutorial ref: Convert JPG to BMP I finally understand how to do it.

    Thanks for an excellent and very informative site

    Bazz

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please copy the string Pkc6BC to the field below: