摘要 |
A system and method for downloading compressed images from an Internet server to a consumer's computer is described. Two Windows(R) threads manage the process of downloading, decompressing and rendering images to the consumer's display. A first binding thread manages communication between the server computer and the consumer's computer, while a second worker thread oversees decompressing and rendering all of the images. The downloaded images are sent by the binding thread to a temporary buffer, wherein the worker thread instructs a decoder object to begin processing all of the data within the specified buffer. As the decoder object decompresses the data in the buffer, the decompressed image data is sent to a bitmap file. A rendering object reads the bitmap file and paints the downloading image to the consumer's display.
|