| 79 |
|
|
| 80 |
|
begin |
| 81 |
|
OniImage := TOniImage.Create; |
| 82 |
< |
OniImage.Load(fileid); |
| 82 |
> |
OniImage.Load(Connection, fileid); |
| 83 |
|
Data := OniImage.GetAsBMP; |
| 84 |
|
OniImage.Free; |
| 85 |
|
|
| 136 |
|
link: LongWord; |
| 137 |
|
i: Byte; |
| 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 |
|
SetBitmapCount(linkcount); |
| 142 |
|
for i := 0 to linkcount - 1 do |
| 143 |
|
begin |
| 144 |
< |
OniDataConnection.LoadDatFilePart(_fileid, $20 + i * 4, SizeOf(link), @link); |
| 144 |
> |
Connection.LoadDatFilePart(_fileid, $20 + i * 4, SizeOf(link), @link); |
| 145 |
|
link := link div 256; |
| 146 |
|
if link = 0 then |
| 147 |
|
link := _fileid - 1; |
| 179 |
|
Dec(actualimg) |
| 180 |
|
else |
| 181 |
|
actualimg := High(bitmaps); |
| 182 |
< |
Self.Caption := 'Preview ' + OniDataConnection.GetFileInfo(_fileid).FileName + |
| 182 |
> |
Self.Caption := 'Preview ' + Connection.GetFileInfo(_fileid).FileName + |
| 183 |
|
' (' + IntToStr(actualimg + 1) + '/' + IntToStr(Length(bitmaps)) + ')'; |
| 184 |
|
DrawImage(actualimg); |
| 185 |
|
end; |
| 191 |
|
Inc(actualimg) |
| 192 |
|
else |
| 193 |
|
actualimg := 0; |
| 194 |
< |
Self.Caption := 'Preview ' + OniDataConnection.GetFileInfo(_fileid).FileName + |
| 194 |
> |
Self.Caption := 'Preview ' + Connection.GetFileInfo(_fileid).FileName + |
| 195 |
|
' (' + IntToStr(actualimg + 1) + '/' + IntToStr(Length(bitmaps)) + ')'; |
| 196 |
|
DrawImage(actualimg); |
| 197 |
|
end; |