mxcad_2d API 文档 / tools / MxCanvas2Image
Class: MxCanvas2Image
tools.MxCanvas2Image
Table of contents
Constructors
Methods
Constructors
constructor
• new MxCanvas2Image(in_document?)
Parameters
| Name | Type | Default value |
|---|---|---|
in_document | any | undefined |
Methods
convertToImage
▸ convertToImage(canvas, width, height, type): undefined | HTMLImageElement
Parameters
| Name | Type |
|---|---|
canvas | any |
width | any |
height | any |
type | any |
Returns
undefined | HTMLImageElement
saveAsImage
▸ saveAsImage(canvas, width, height, type): void
saveAsImage
Parameters
| Name | Type |
|---|---|
canvas | any |
width | any |
height | any |
type | any |
Returns
void
