Acad.Application.activedocument.capturePreview Function
File
Autodesk.AutoCAD.js
Syntax
JavaScript
function Acad.Application.activedocument.capturePreview(w, h);
Group
Parameters
Parameter | Description |
---|---|
w | width of final image. |
h | height of final image. |
Returns
A Base64 encoded bitmap in the success callback function.
This function returns a promise pattern result, it has to be called as a Promise Pattern with .then(onSuccess, onError)
function.
Description
Use this method to capture an image of the current document.