GH_MaterialPreview

public class GH_MaterialPreview
Class for generating Preview Material thumbnails.

Properties

Colour

#
public Color Colour { get; set; }
Gets or sets the colour of the material preview.

Selected

#
public bool Selected { get; set; }
Gets or sets the Selected state of this preview.

Methods

Image

#
public Bitmap Image()
Gets the default bitmap preview for the current material. The default size is 100x100 pixels. If you want a smaller size then use the Thumbnail() function instead.

Thumbnail

#
public Bitmap Thumbnail(int size)
Gets a thumbnail of the preview, without any selection widgets drawn in.
size (int)Size of thumbnail. Should be between 16 and 50 for best results. _ thumbnails cannot be made bigger than 100 or smaller than 16.