The function JpgToBmp (JPGpicLocation, BMPpicLocation: string) : Boolean;
Var
JpegImg: TJpegImage;
Bitmap: TBitmap;
The begin
Result:=False;
JpegImg:=TJpegImage. Create;
Try
JpegImg. LoadFromFile (JPGpicLocation);
Bitmap:=TBitmap. Create;
Try
Bitmap. Assign (JpegImg);
Bitmap. SaveToFile (BMPpicLocation);
Result:=True;
The finally
Bitmap. Free
end;
The finally
JpegImg. Free
end;
end;
The above code can take most of the RGB JPG to BMP, but not CMYK mode
CodePudding user response:
Is this a
CodePudding user response:
The TImage displays the figure is normal
CodePudding user response:
Delphi7 showed no, which version are you using?