Table of Contents

Class DisplayScaledImagesByKey<TKey>

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

Chooses between regular and high-DPI image and/or scales images depending on current DPI setting. This class is for images indexed by key. See also DisplayScaledImages, DisplayScaledImage.

public class DisplayScaledImagesByKey<TKey> : IDisposable where TKey : notnull

Type Parameters

TKey
Chooses between regular and high-DPI image and/or scales images depending on current DPI setting. This class is for images indexed by key. See also DisplayScaledImages, DisplayScaledImage.
Inheritance
DisplayScaledImagesByKey<TKey>
Implements

Constructors

DisplayScaledImagesByKey(GetImageFunc, GetImageFunc)

Initializes a new instance of DisplayScaledImagesByKey class.

Methods

Dispose()

Disposes this DisplayScaledImagesByKey and frees resources associated with it.

Dispose(bool)
GetImage(TKey)

Gets output image, with scaling applied, if required.

A key to index the image by.
GetImageNotScaled(TKey)

Gets output image, but without any scaling applied.

A key to index the image by.