KitchenDraw SDK 2
Show / Hide Table of Contents

Method ExportModelFinishImage

ExportModelFinishImage(int, int, int, int, int, string, int, int, int, int)

Exports a sample of a particular model finish texture to an image.

Declaration
public void ExportModelFinishImage(int finishClusterRank, int finishRowRank, int textureRank, int sampleWidth, int sampleHeight, string imageFilename, int imageWidth, int imageHeight, int jpegQuality = 100, int antialiasing = 1)
Parameters
Type Name Description
int finishClusterRank

Zero-based rank of the cluster which contains the texture to export.

int finishRowRank

Zero-based rank of the row in the cluster which contains the texture to export.

int textureRank

Zero-based column rank which contains the texture to export. Normally this should be 0. A finish in a catalog can theoretically utilize up to 8 different textures (e.g. "Carcase colour" model finish type of "KITCHEN TUTORIAL" catalog utilizes 3 of them: for "Outside", "Inside" and "Edges" colours).

int sampleWidth

Width of the texture sample to render, in catalog measurement units.

int sampleHeight

Height of the texture sample to render, in catalog measurement units.

string imageFilename

Filename of the image to create. The image format is determined from the filename extension.

int imageWidth

Width of the image to create, in pixels.

int imageHeight

Height of the image to create, in pixels.

int jpegQuality

The quality level of the image if the export format is JPEG. Should be in 0-100 range.

int antialiasing

Specified the antialiasing level used to reduce the stairs effect on the oblique lines. See ExportImage(string, int, int, bool, string, int, int) for the explanation.

In this article
Back to top Generated by DocFX