<i><font color="silver">
<b>
uses
</b>
..., JPEG;
<b>
procedure
</b> TForm1
.
Button1Click(Sender: TObject);
<b>
var
</b>
MyJPEG : TJPEGImage;
MyBMP : TBitmap;
<b>
begin
</b>
MyJPEG := TJPEGImage
.
Create;
<b>
with
</b> MyJPEG <b>
do
</b>
<b>
begin
</b>
LoadFromFile( <font color="RoyalBlue">
'YourJpegHere.JPEG'
</font> );
MyBMP := TBitmap
.
Create;
<b>
with
</b> MyBMP <b>
do
</b>
<b>
begin
</b>
Width := MyJPEG
.
Width;
Height := MyJPEG
.
Height;
Canvas
.
Draw( <font color="royalblue">
0
</font>, <font color="royalblue">
0
</font>, MyJPEG );
SaveToFile( <font color="royalblue">
'YourBmpHere.BMP'
</font> );
Free;
<b>
end
</b>;
Free;
<b>
end
;
end
;</b>
<i><font color="Silver">
<b>
uses
</b>
..., JPEG;
<b>
procedure
</b> TForm1
.
Button1Click(Sender: TObject);
<b>
var
</b>
MyBMP: TBitmap;
MyJPEG: TJPEGImage;
<b>
begin
</b>
MyBMP := TBitmap
.
Create;
MyJPEG := TJPEGImage
.
Create;
MyJPEG
.
LoadFromFile( <font color="royalblue">
'YourJpegHere.JPEG'
</font> );
MyBMP
.
Assign( MyJPEG );
MyBMP
.
SaveToFile( <font color="royalblue">
'YourBmpHere.BMP'
</font> );
MyJPEG
.
Free;
MyBMP
.
Free;
<b>
end
;</b>