如何增加/减少位图的亮度? [英] How do you increase/decrease the brightness of a bitmap?

查看:64
本文介绍了如何增加/减少位图的亮度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何增加/减少位图的亮度?

How do you increase/decrease the brightness of a bitmap?

推荐答案

为每个像素的所有颜色分量添加一个常量值.
完成此操作的方式取决于位图格式.

gdiplus :: Image类的一些方法可以提供帮助.
(使用google搜索文档地址)
Adding a constant value to all the color components of each pixel.
The way this is done depends on the bitmap format.

There are some methods of the gdiplus::Image class that can help.
(search with google the address of the documentation)


这篇关于如何增加/减少位图的亮度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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