Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Remoting desktop controlling program needs to transfer a bmp from server to client,to make good use of the bandwidth,reduce the size of the image.I want to reduce the color depth of a bmp.
How to convert a bmp of 24bpp,32bpp,even if 64bpp to a bmp of 8bppIndexed?
Posted

Create a bitmap with the desired color depth as the destination bitmap and copy the original image to it.
 
Share this answer
 
hi
create a copy of the bitmap and save it to a MemoryStream as a GIF image. GIF images are 8bpp.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900