views:

84

answers:

1

I have a large images on server. When user request for any one I download them on to the client machine and once it is complete I load it into Timage control.

Now what client is requesting that the image must come in chunks(parts) and as soon as a chunk is downloaded it must be shown in Timage control and as soon as other chunk downloaded it must be appended to previously loaded image.

I am not getting how to proceed for the same. I am using Delphi 2006

A: 

Create bm, an empty (whiter or black) TBitmap with the same size as the entire image. Then download each cell of the image one by one. When a new cell is downloaded, draw it (for instance, using BitBlt or Draw) on the right part of bm.

Andreas Rejbrand