放大并更改图像的对比度 [英] Magnify and change contrast of image

查看:99
本文介绍了放大并更改图像的对比度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何动态更改.net中图像的对比度.
场景:我在图像控件中显示一个可以说的图片,然后我想要一个图标或按钮来调整图像的对比度.
单击按钮(放大)后,我也可以放大图像的某些部分.

How can i change contrast of an image in .net dynamically.
Scenario: I show a pic in lets say in an image control and then i want a icon or a button which adjusts the contrast for the image.
Also can i magnify certain portions of the image after a button(magnify) click.

推荐答案

放大很容易.您只需以较大的尺寸绘制图像部分.对比也不难.我的图像过滤文章显示了一种实现方法,但实际上使用ImageAttributes类更容易实现.在线上有很多示例,您是否愿意看一下?
Magnifying is easy. You just draw the image section at a larger size. Contrast is also not hard. My image filtering articles show one way of doing it, but it''s actually easier to do it using the ImageAttributes class. There''s plenty of examples online, did you bother to look ?


这篇关于放大并更改图像的对比度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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