MaterialThumbnail

References
public class MaterialThumbnail
Provides all methods for compositing material preview thumbnails.

Constructors

MaterialThumbnail

#
Set up a minimal material thumbnail.
public MaterialThumbnail(
Bitmap
diffuse,
Required shape diffuse contribution.
Bitmap
shapeShine
Required shape shine map.
)

MaterialThumbnail

#
Set up a complete material thumbnail.
public MaterialThumbnail(
Bitmap
diffuse,
Required shape diffuse.
Bitmap
shine,
Required shape shine.
Bitmap
context,
Optional context.
Bitmap
directIllumination,
Optional context direct lighting map.
Bitmap
indirectIllumination,
Optional context indirect lighting map.
IEnumerable<PointF[]>
silhouettes,
Optional list of silhouette edges.
IEnumerable<PointF[]>
visibleEdges,
Optional list of visible edges.
IEnumerable<PointF[]>
hiddenEdges
Optional list of hidden edges.
)

MaterialThumbnail

#
Set up a standard material thumbnail.
public MaterialThumbnail(
Bitmap
diffuse,
Required shape diffuse contribution.
Bitmap
shine,
Required shape shine map.
IEnumerable<PointF[]>
silhouettes,
Optional list of silhouette edges.
IEnumerable<PointF[]>
visibleEdges,
Optional list of visible edges.
IEnumerable<PointF[]>
hiddenEdges
Optional list of hidden edges.
)

Properties

Size

#
Gets the size of the thumbnail.
public Size Size { get; }

Methods

CreateDefault

#
Create the default preview scene.
public static MaterialThumbnail CreateDefault()
Default scene.

CreateFromFolder

#
Create a new thumbnail preview scene from a folder. The folder must contain correctly named and proportioned image files.
public static MaterialThumbnail CreateFromFolder(
folder
Folder to peruse.
)
Material thumbnail constructed from the files in the folder.

DrawThumbnail

#
Create a thumbnail for a preview material.
public Bitmap DrawThumbnail(
guise,
Preview material.
Color
background,
Background colour.
layers
Layers to include in the preview.
)
Thumbnail.