首页 > TAG信息列表 > JpgFileName

delphi Jpg和Bitmap相互转换

delphi Jpg和Bitmap互转转换的方法: uses Jpeg; procedure Bmp2Jpeg(const BmpFileName, JpgFileName: string); var Bmp: TBitmap; Jpg: TJPEGImage; begin Bmp := TBitmap.Create; Jpg := TJPEGImage.Create; try Bmp.LoadFromFile(BmpFileName); Jpg.Assign