Table of Contents

Class ImageList

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Provides methods to manage a collection of Image objects.

public class ImageList : ImageContainer<IImageListHandler>, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IImmutableObject, IDisposableObject, IBaseObject, IImageContainer, IDisposable
Inheritance
ImageList
Implements

Remarks

ImageList is used by some controls, such as the tree view and list view. You can add images to the ImageList, and the controls are able to use the images as they require.

Constructors

ImageList()

Initializes a new instance of the ImageList with default values.

ImageList(Image)

Initializes a new instance of the ImageList class with specified image strip.

ImageList(Image, int)

Initializes a new instance of the ImageList class with specified image strip.

ImageList(SizeI)

Initializes a new empty instance of the ImageList class with the specified image size.

ImageList(bool)

Initializes a new instance of the ImageList with default values.

ImageList(IEnumerable<Image>)

Initializes a new instance of the ImageList class with specified image list.

ImageList(IEnumerable<Image>, SizeI)

Initializes a new instance of the ImageList class with specified parameters.

Fields

DefaultSize

Gets or sets the default size of the images in the image list, in pixels.

Empty

Gets an empty ImageList.

Properties

ImageSize

Gets or sets the size of the images in the image list, in pixels.

Methods

AddImageStrip(Image)

Adds image strip to the image list.

AddResized(Image)

Adds the image to the image list, resizing it if necessary.

AddSvg(SvgImage, Color?)

Adds svg to the image list with the default normal color for the specified theme.

AddSvg(SvgImage, bool)

Adds svg to the image list with the default normal color for the specified theme.

CreateHandler()

Creates handler.

Draw(Graphics, float, float, int)

Draws an image on the specified graphic surface at the location specified by a coordinate pair.

GetSuggestedSize(float)

Gets suggested size of the image for the specified scale factor.

Initialize(IEnumerable<Image>, SizeI)

Initializes the image list with the specified images and size.

WithConvertedColors(Func<ColorStruct, ColorStruct>)

Creates an new ImageList from this object with all pixels converted using the specified function.

WithLightColors()

Creates an new ImageList from this ImageList with all pixels lighter.

WithLightLightColors()

Creates an new ImageList from this ImageList with all pixels lighter (this method makes 2x lighter than WithLightColors()).