[]
        
(Showing Draft Content)

C1.Framework.IconRenderer

IconRenderer Class

Provides basic functionality for rendering a C1Icon to an Image.

Implements
Namespace: C1.Framework
Assembly: C1.Win.4.8.dll
Syntax
public abstract class IconRenderer : IDisposable

Constructors

Name Description
IconRenderer(C1Icon, int)

Initializes a new instance of the IconRenderer class.

Fields

Name Description
DefaultDpi

Gets a default value of dpi.

Properties

Name Description
BackColor

Gets or sets the color used to paint the icon's background.

CachedImage

Gets or sets the cached icon image.

Color

Gets or sets the color used to paint the icon.

DeviceDpi

Gets or sets the device dpi where the image will be used.

Icon

Gets the icon to render.

Padding

Gets or sets the padding of the icon.

RightToLeft

Gets or sets whether the C1Icon should be drawn using right-to-left layout.

ScaledSize

Gets the size of icon after scaling by DeviceDpi.

Size

Gets or sets the size of icon to show.

Methods

Name Description
CreateRenderer(C1Icon, int)

Creates an instance of the inheritor of IconRenderer class in accordance with the C1Icon type.

Dispose()

Clean up any resources being used.

Dispose(bool)

Clean up any resources being used.

GetImage()

Gets the image that the icon was rendered into.

ResetCache()

Resets cached image.