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>, IBaseObjectWithId, IImmutableObject, IDisposableObject, IBaseObject, INotifyPropertyChanged, 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(bool)

Initializes a new instance of the ImageList with default values.

Fields

Empty

Gets an empty ImageList.

Properties

ImageSize

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

Methods

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, double, double, int)

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

GetSuggestedSize(double)

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

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()).