在运行时更改图像的颜色 [英] change color of image at runtime

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

问题描述

您好,我是C#的主人.我想在运行时更改家具的颜色.在我的Winform中,我必须显示家具图像,并且用户要在运行时更改家具的颜色.我不知道如何完成此任务,请帮助我....让我深入解释.假设我们有一张椅子的图像,并且我们不想用通过colordialog选择的颜色来改变椅子的颜色,任何人请给我代码....

Hi to aa the master of c#. i want to change color of furniture at runtime.In my winform i have to show furniture image and user wana change color of furniture at runtime. I dont any idea how to accomplished this plz help me out.... let me explain in deep. Suppose we have an image of chair and we wnt to change color of chair with the color selected with colordialog, anyone plz provide me code....

推荐答案

基于您所说的Winforms是具有不同颜色功能的图像,只是定义了给定颜色的图像,并提供了选择颜色的选项.根据选择的颜色,显示相应的图像.

在运行时更改图像的颜色并不容易,并且需要使用不同的工具集.
Based on what you say, Winforms, image of different color feature, just have defined images of a given color and give an option to select a color. Based on color selected, show respective image.

Changing color of an image at runtime is not easy and needs different set of tools if needed.


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

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