如何更改位图的颜色? [英] How to change the color of bitmap?

查看:167
本文介绍了如何更改位图的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的位图的颜色是黑色,我想将其更改为白色.
我已经经历了以下无法更改颜色的练习.

The color of my bitmap is black and i want to change it to white.
I had already gone through following practices which could not able to change the color.

/*Dim oColor As System.Drawing.Color
        oColor = Color.White
      oBitmap.SetPixel(1, 1, oColor)

*/

/* oBitmap.SetPixel(10, 10, Color.BlueViolet)*/


所有库都已包含.
有人可以帮我解决这个问题吗?


All libraries are already included.
Can anybody help me to sort out this problem?

推荐答案

YOGESH DHAGE写道:
YOGESH DHAGE wrote:

我已经经历了以下无法更改颜色的做法.

I had already gone through following practices which could not able to change the color.


到底是什么意思?
更改像素颜色后是否保存了位图?
:)


What do you mean, exactly?
Did you save the bitmap after changing color of the pixel(s)?
:)


这篇关于如何更改位图的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆