Table of Contents

Class PainterResources<TBrushType, TPenType, TImageType, TImageListType, TTextStyleType>

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

Represents a base class holds various resources used in drawing surfaces. This class is abstract.

public abstract class PainterResources<TBrushType, TPenType, TImageType, TImageListType, TTextStyleType> : IDisposable where TBrushType : notnull where TPenType : notnull where TImageType : notnull where TImageListType : notnull where TTextStyleType : notnull

Type Parameters

TBrushType

Type of System.Drawing.Brush resources stored in this class.

TPenType

Type of System.Drawing.Pen resources stored in this class.

TImageType

Type of System.Drawing.Image resources stored in this class.

TImageListType

Type of ImageListEx resources stored in this class.

TTextStyleType

Type of TextStyle resources stored in this class.

Inheritance
PainterResources<TBrushType, TPenType, TImageType, TImageListType, TTextStyleType>
Implements
Derived

Properties

ImageResourceFileExtension
ImageResourceNameHighDpiSuffix

Methods

AutoScale(int)
AutoScale(Padding)
CreateBrush(TBrushType)
CreateImage(TImageType, bool)
CreateImageList(TImageListType, bool)
CreatePen(TPenType, Func<int, int>)
CreateTextStyle(TTextStyleType)
Dispose()

Disposes this PainterResources and frees resources associated with it.

Dispose(bool)
GetBrush(TBrushType)

Finds stored Brush object accordingly to the specified type or creates a new one if necessary.

GetBrushDescription(TBrushType)
GetImage(TImageType)

Finds stored Image object accordingly to the specified type or creates a new one if necessary.

GetImageDescription(TImageType)
GetImageList(TImageListType)

Finds stored ImageList object accordingly to the specified type or creates a new one if necessary.

GetImageListDescription(TImageListType)
GetPen(TPenType)

Finds stored Pen object accordingly to the specified type or creates a new one if necessary.

GetPenDescription(TPenType)
GetTextStyle(TTextStyleType)

Finds stored text style object accordingly to the specified type or creates a new one if necessary.

GetTextStyleDescription(TTextStyleType)
MakeSolidBrush(Color)
MakeSolidBrush(int)
MakeSolidPen(Color, int)
MakeSolidPen(int, int)
MakeTextStyle(Font, Color)
MakeTextStyle(Font, int)