Changeset 472 for GraphicTest/Packages/bgrabitmap/bgradnetdeserial.pas
- Timestamp:
- Apr 9, 2015, 9:58:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/Packages/bgrabitmap/bgradnetdeserial.pas
r452 r472 155 155 procedure LoadFromStream(Stream: TStream); 156 156 procedure LoadFromFile(filename: string); 157 procedure LoadFromFileUTF8(filenameUTF8: string); 157 158 function ToString: string; override; 158 159 constructor Create; … … 182 183 183 184 implementation 185 186 uses lazutf8classes; 184 187 185 188 const … … 859 862 begin 860 863 stream := TFileStream.Create(filename, fmOpenRead); 864 try 865 LoadFromStream(stream); 866 finally 867 stream.Free; 868 end; 869 end; 870 871 procedure TDotNetDeserialization.LoadFromFileUTF8(filenameUTF8: string); 872 var 873 stream: TFileStreamUTF8; 874 begin 875 stream := TFileStreamUTF8.Create(filenameUTF8, fmOpenRead); 861 876 try 862 877 LoadFromStream(stream);
Note:
See TracChangeset
for help on using the changeset viewer.