- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
delphi 中 TJpegImage 中的一处问题修复
uses JPEG;
function CanLoadFromStream(Stream: TStream): Boolean;
var
soi, marker: Word;
P: Int64;
begin
P := Stream.Position;
try
Result := (Stream.Read(soi, SizeOf(soi)) = SizeOf(soi)) and (soi = $D8FF);
finally
Stream.Position := P;
end;
end;
来源:http://blog.qdac.cc/?p=5174