imagelist

Listview icons show up blurry (C#)

I'm attempting to display a "LargeIcon" view in a listview control, however the images I specify are blurry. This is what I have so far: The .png files are 48x48 and that's what I have it set to display at in the ImageList properties. There's one thing that I've noticed (which is probably the cause) but I don't know how to change it. I...

Extracting PNG images from Delphi 2009 imagelist

The TImageList of Delphi 2009 has support for PNG images by adding them in the imagelist editor. Is there any way to extract a TPngImage from a TImagelist and preserving the alpha channel? What I want to do is actually to extract the images from one TImageList, make a disabled version of them and then add them to another TImageList. Dur...

.NET: How to load an image into an ImageList?

i have an image that contains a series of images, e.g.: In the olden days, i would load the image into the ImageList common control using such API calls as: ImageList_Add ImageList_LoadImage IImageList::Add What is the .NET method of achieving the same result with the .NET ImageList class? Note: The image is only an example. My...

PNGs in Delphi 2009 Imagelists and Images

D2009 introduces PNG support for Images and Imagelists. However... I have an imagelist containing png images with alpha. I want to place one of these on a form using a TImage. How do I do this and get the image nicely composited? As an example of the problem I'm facing the code below fails to work correctly, and produces the effect sh...

Animated GIF in ImageList / TabPage

I'd like to show an animated GIF as the tab image on a TabPage. If I add my image to an ImageList and use the TabPage.ImageIndex property, it only shows the first frame (and doesn't animate): ImageList imageList = new ImageList(); imageList.Images.Add(Properties.Resources.my_animated_gif); tabControl.ImageList = imageList; tabPage.Ima...

Who is responsible for clearing up memory from image lists?

If I have a CImageList object (a simple wrapper around a HIMAGELIST), and I call: m_pImageList->Replace(...); http://msdn.microsoft.com/en-us/library/k10cwcdb.aspx Who is responsible for clearing up the memory? Does the image list create a copy of any bitmap I pass in (i.e. can I create a CBitmap object on the stack then pass the a...

Can System.Windows.Forms.ColumnHeader use a different image then one from the main ImageList?

I have an ListView set up to sort, and I have that working well. However, when the ListView is sorted, no indication is provided as to the current sort column and order. I tried a solution setting the ColumnHeader.ImageKey property whenever sorting, but I want to be able to use images that aren't the size specified by the ListView's Sm...

Display Icon on form in vb.net

How would I display an Icon at 48x48 resolution on a form in vb.net? I looked at using imagelist , but I don't know how to display the image that I add to the list using code and how to specify it's coordinates on the form. I did some google searching but none of the examples really show what I need to know. ...

Using ImageList from VB6 application causes crash on Windows 7.0 64-bit

I have an old VB6 application that uses an ImageList control from COMCTL32.OCX ("Microsoft Windows Common Controls 5.0 (SP2)") to provide icons for TreeViews and ListViews. The app won't even launch on Windows 7.0 64 bit. The minute it tries to load the form that has the ImageList on it, it crashes (well, actually, the app winks out, ex...

How can I replace an existing image on a winforms ImageList?

How can I replace an existing image on a winforms ImageList? I tried this: this.CoolPics.Images [ 2 ] = // new image this.ListViewControl.SmallImageList = this.CoolPics; However the new image is not rescaled the way the others are, when I used the this.CoolPics.Images.Add method. What am I doing wrong? ...

Create TImageList by specifying paths only

In Delphi 2007, images are loaded in a TImageList at design time. This introduces the following problem: I have a folder containing the graphics I'm using in my application Whenever I want to change, say, the icon for 'save', I have to Change the graphic in the folder (for my own purposes) Iterate along all TImageLists in the applicat...

How do I use an HIMAGELIST (from SetupDiGetClassImageList) as a .NET ImageList?

I've got an HIMAGELIST (from SetupDiGetClassImageList) and I'd like to use it with a Windows Forms ListView, which needs an ImageList. There's no ImageList.FromHandle. How do I use my HIMAGELIST as an ImageList? ...

How to add an imagelist to WPF listview?

I don't even see it in the Toolbox in the designer. Is it called something else? I am trying to port my winforms listview to wpf. ...

insert a image in the ImageList at the perticular index

I want to insert a image in the ImageList at the specified index or you can say that replace the existing image at the perticular index but the Add method can'nt able to resolve this issue , imageList.Images.Add("w",Image.FromFile("C:\Folder.jpg")); Or, imageList.Images[listView1.SelectedItems[0].Index]. ???? what can i do???? ...

Combining Bitmaps / ImageLists (Win32)

Is it possible to create an image list from multiple bitmaps, or to combine multiple image lists into one. For sake of simplicity, same element dimensions and transparent color could be assumed. Reason: I am currently dealing with a very long image list containing four groups of icons and notable "reserved" areas between them. For edi...

how to make frame in imagelist component every image dotnet

hi how to make frame in imagelist component every image in dotnet pls help me anybody ...

Generate thumbnail of pdf document.

Duplicate of (amongst others) Generate thumbnail of pdf document How to show thumbnail of pdf in listview C#.net? how to place thumbnail of pdf in listview develop an application similar to windows explorer Please help to generate thumbnail image for pdf in c#. //Treeview1_AfterSelect private void Treeview1_AfterSelect(System....

Windows Forms .NET 3.5 using resource images for a Treeview control

Hello SO, When populating my treeview I would like to use the same images that I use in my toolbar etc which are stored in a resource file. The treeview seems to on accept images via an image list. I was thinking of reflecting and adding the resources to an image list on load... How do you guyz n girlz generally do this? ...

Imagelist cf.net and .net designer problem

After some testing, I found out that streaming of ImageList using CF WinForms designer is different from streaming using WinForms designer. If images are added using cf.net designer and form is reopened using winfrorms designer an exception "Method 'System.Windows.Forms.Design.ImageListDesigner+OriginalImageCollection.Add' not found. " i...

Image index of TreeView node changes upon selection.

When I tried using the imagelist in treeview, the image index changes when treenode is clicked. I have no idea why it is happening. Can anyone help me? Thanks in advance ...