更改列表视图中图像的亮度 [英] change brightness of images in listview

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

问题描述

你好..我已以缩略图格式在列表视图控件中添加了图像...我想使用轨迹栏更改列表视图中选中图像的亮度...有人可以告诉我dat ..pls帮助的代码
thnks

//这是用于遍历列表视图并查找选中图像的代码. :confused://

listView1.LargeImageList = null;
ImageList imglist3 = new ImageList();
imglist3.ColorDepth = ColorDepth.Depth32Bit;

for(int i = 0; i< listView1.Items.Count; i ++)
{
if(listView1.Items [i].已检查)
{

hello..i have added images in the listview control in thumbnail format...i want to change brightness of the checked images in the listview using trackbar...can someone tell me code for dat ..pls help
thnks

//this is code for looping through the listview and finding out checked images.After this how shud i carry on ?? :confused: //

listView1.LargeImageList = null;
ImageList imglist3 = new ImageList();
imglist3.ColorDepth = ColorDepth.Depth32Bit;

for(int i=0; i<listView1.Items.Count;i++)
{
if(listView1.Items[i].Checked)
{

推荐答案

您将需要某种亮度过滤器.正如您说的那样,您正在使用Linux(这解释了为什么您使用诸如"dat"之类的词)的原因,我不确定您将如何直接获得像素访问权限,C ++对此一无所知,取决于您使用的平台.但我希望会有免费的库供您使用.
You''d be wanting some sort of brightness filter. As you say you''re using Linux ( which explains why you use words like ''dat'' ), I''m not sure exactly how you''d get direct pixel access, C++ has no knowledge of such things, they depend on the platform you''re using. But I''d expect there would be free libraries you could use.


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

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