How can I grey-out listview images after a user invokes a mouse click event on that listview item. Further how can the previously selected images remain greyed-out until the form is reopened?
I have created this image list which loads images:
// Create ImageList objects
ImageList imageList = new ImageList();
imageList.ImageSize = new Size(160, 160);
imageList.ColorDepth = ColorDepth.Depth32Bit;
The images are displayed in a listview:
private void listView_Family_ItemMouseHover(Object sender, ListViewItemMouseHoverEventArgs e)
{
listView_Family.ShowItemToolTips = true;
}
if (isFamilyLoadedFlag == true)
{
//here i can change the item color and now i'd like to change the image
previewFamilyData(selectedFilePath, selectedFileName);
//change text color
e.Item.ForeColor = Color.AntiqueWhite;
e.Item.BackColor = Color.LightGray;
int imageIndex = e.Item.ImageIndex;
}
So how do I change either the image, opacity/color/alpha or I'd even settle for shrinking the image if this could distinguish it from the images that have not been modified.