Hi guys,
The problem is to convert Bitmap to PNG8 in memory and then post PNG8 through http to server.
So far, I used CANVAS_GetScreenDataPtr( ScreenID, &CP ) ,i = NewBitmap (W, 8, W, H, CP->ColorTable, CP->Image.Data, 0, &BitmapID) ,SaveBitmapToBMPFile (BitmapID, FileName) and then load Bitmap and use function PNG32ToPNG8.
It will be faster if I could use convert CP->Image to PNG8 directly. Do anyone have any idea how to deal with this problem?