Table of Contents

Method CreateThumbnailRenderer

Namespace
PaintDotNet
Assembly
PaintDotNet.Data.dll

CreateThumbnailRenderer(int)

Creates a renderer for a thumbnail of the underlying object.

public IRenderer<ColorBgra> CreateThumbnailRenderer(int maxEdgeLength)

Parameters

maxEdgeLength int

The maximum edge length of the thumbnail.

Returns

IRenderer<ColorBgra>

This method must only render the thumbnail without any borders. The renderer returned may have a maximum size of (maxEdgeLength x maxEdgeLength). This method may be called from any thread. The renderer returned is then owned by the calling method, and should be disposed once used. The renderer should not have parallelization applied to it.

Remarks

This method may throw exceptions; however, it must guarantee that the underlying object is still valid and coherent in this situation.
Also, the thumbnail should be rendered with the "checkerboard" background.