Changeset 86 for oup/current/Tools/Preview.pas
- Timestamp:
- Jan 14, 2007, 9:19:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Tools/Preview.pas
r46 r86 80 80 begin 81 81 OniImage := TOniImage.Create; 82 OniImage.Load( fileid);82 OniImage.Load(Connection, fileid); 83 83 Data := OniImage.GetAsBMP; 84 84 OniImage.Free; … … 137 137 i: Byte; 138 138 begin 139 OniDataConnection.LoadDatFilePart(_fileid, $14, SizeOf(loop_speed), @loop_speed);140 OniDataConnection.LoadDatFilePart(_fileid, $1C, SizeOf(linkcount), @linkcount);139 Connection.LoadDatFilePart(_fileid, $14, SizeOf(loop_speed), @loop_speed); 140 Connection.LoadDatFilePart(_fileid, $1C, SizeOf(linkcount), @linkcount); 141 141 SetBitmapCount(linkcount); 142 142 for i := 0 to linkcount - 1 do 143 143 begin 144 OniDataConnection.LoadDatFilePart(_fileid, $20 + i * 4, SizeOf(link), @link);144 Connection.LoadDatFilePart(_fileid, $20 + i * 4, SizeOf(link), @link); 145 145 link := link div 256; 146 146 if link = 0 then … … 180 180 else 181 181 actualimg := High(bitmaps); 182 Self.Caption := 'Preview ' + OniDataConnection.GetFileInfo(_fileid).FileName +182 Self.Caption := 'Preview ' + Connection.GetFileInfo(_fileid).FileName + 183 183 ' (' + IntToStr(actualimg + 1) + '/' + IntToStr(Length(bitmaps)) + ')'; 184 184 DrawImage(actualimg); … … 192 192 else 193 193 actualimg := 0; 194 Self.Caption := 'Preview ' + OniDataConnection.GetFileInfo(_fileid).FileName +194 Self.Caption := 'Preview ' + Connection.GetFileInfo(_fileid).FileName + 195 195 ' (' + IntToStr(actualimg + 1) + '/' + IntToStr(Length(bitmaps)) + ')'; 196 196 DrawImage(actualimg);
Note:
See TracChangeset
for help on using the changeset viewer.