IRelaxISWCFLinkGetModelImageData Method |
Generate a PNG image of the given model.
Namespace: RelaxIS_SDK.RelaxISWCFLinkAssembly: RelaxIS SDK (in RelaxIS SDK.dll) Version: 3.0.23.63
Syntax [OperationContractAttribute]
IReadOnlyCollection<byte> GetModelImageData(
string model,
double scale,
bool inclBackground,
bool inclElementNames
)
<OperationContractAttribute>
Function GetModelImageData (
model As String,
scale As Double,
inclBackground As Boolean,
inclElementNames As Boolean
) As IReadOnlyCollection(Of Byte)
Dim instance As IRelaxISWCFLink
Dim model As String
Dim scale As Double
Dim inclBackground As Boolean
Dim inclElementNames As Boolean
Dim returnValue As IReadOnlyCollection(Of Byte)
returnValue = instance.GetModelImageData(model,
scale, inclBackground, inclElementNames)
Parameters
- model String
- The model.
- scale Double
- The scale in which to draw, default 1.0.
- inclBackground Boolean
- If true, a white background is added to the image, otherwise the background is transparent.
- inclElementNames Boolean
- If true, element names are written alongside the elements in the image.
Return Value
IReadOnlyCollectionByteThe PNG image data as bytes. If the model is invalid, a placeholder image is returned.
See Also