Can you change one colour to another in an Bitmap image?

前端 未结 4 1955
别跟我提以往
别跟我提以往 2021-01-02 12:53

For Bitmap, there is a MakeTransparent method, is there one similar for changing one color to another?

// This sets Color.White to          


        
4条回答
  •  失恋的感觉
    2021-01-02 13:51

    You need a library that provides a way to modify the color space of an image without having to work with pixels. LeadTools has a pretty extensive image library that you can use that supports color space modifications, including swapping colors.

提交回复
热议问题