I have ListView with the View type LargeIcon. The ListView has assigned LargeImageList. The assigned ImageList has ImageSize 200×200.
Images that will be added to the ImageList have size that doesn’t match to 200×200 ImageList size. They can have a lesser width or height. In both cases I want images to be aligned by center, i.e. MiddleCenter property for Winforms.Label class
I have ListView with the View type LargeIcon. The ListView has assigned LargeImageList. The
Share
ImageList will resize the image to fit the ImageSize. To get the image at its original size, and centered, you’ll need to create a new image with the desired properties. Sample code to do this (untested):