Changeset 193 for oup/current/Global


Ignore:
Timestamp:
May 26, 2007, 4:24:55 PM (18 years ago)
Author:
alloc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Global/OniImgClass.pas

    r192 r193  
    5656begin
    5757  InitImage(singleimg);
    58   CloneImage(FImages[Index], singleimg);
     58  CloneImage(FImages[Index-1], singleimg);
    5959  ConvertImage(singleimg, ifX8R8G8B8);
    6060  rect.Left := 0;
     
    424424  else
    425425    ConManager.Connection[ConnectionID].LoadRawFile(fileid, $A0, TStream(data));
     426
     427//  data.Seek(0, soFromBeginning);
     428//  data.SaveToFile('m:\test.txmp');
     429
    426430  data.Seek(0, soFromBeginning);
    427431  result := LoadMultiImageFromStream(data, FImages);
    428432  data.Free;
    429 
     433{
     434  if result then
     435  begin
     436    for i := 0 to High(FImages) do
     437    begin
     438      data := TMemoryStream.Create;
     439      data.Write(FImages[i].Bits^, FImages[i].Size);
     440      data.Seek(0, soFromBeginning);
     441      data.SaveToFile('m:\test.txmp.'+IntToStr(i));
     442      data.Free;
     443    end;
     444  end;
     445}
    430446  if not result then
    431447  begin
Note: See TracChangeset for help on using the changeset viewer.