Changeset 244 for oup/current/Global
- Timestamp:
- Aug 17, 2007, 11:09:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Global/OniImgClass.pas
r204 r244 414 414 images[i] := TOniImage.Create; 415 415 images[i].LoadFromTXMP(ConnectionID, link); 416 SetLength(FImages, 1);417 NewImage(width, height, ifA1R5G5B5, FImages[0]);418 end;416 end; 417 SetLength(FImages, 1); 418 NewImage(width, height, images[0].Format {ifA1R5G5B5}, FImages[0]); 419 419 for y := 0 to rows - 1 do 420 420 begin … … 426 426 for i := 0 to x do 427 427 if i < x then 428 x_start := x_start + images[i].Image[ 0].Width;428 x_start := x_start + images[i].Image[1].Width; 429 429 for i := 0 to y do 430 430 if i < y then 431 y_start := y_start + images[i].Image[ 0].Height;432 CopyRect(images[imgid].Image[ 0], 0, 0, images[imgid].Image[0].Width,433 images[imgid].Image[ 0].Height, FImages[0], x_start, y_start);431 y_start := y_start + images[i].Image[1].Height; 432 CopyRect(images[imgid].Image[1], 0, 0, images[imgid].Image[1].Width, 433 images[imgid].Image[1].Height, FImages[0], x_start, y_start); 434 434 end; 435 435 end;
Note:
See TracChangeset
for help on using the changeset viewer.