JavaScript Application Programming Interface (API) for AutoCAD
ContentsIndexHome
PreviousUpNext
Acad.Application.activedocument.capturePreview Function

Autodesk.AutoCAD.js

JavaScript
function Acad.Application.activedocument.capturePreview(w,h);
Parameters 
Description 
width of final image. 
height of final image. 

The Promise object, which can then be used as an argument.

Use this method to capture an image of the current document. The image is returned as a Base64 encoded bitmap. This function returns promise pattern result, it has to be call in Promise Pattern with .then(onsuccess, onError) function.

Links
Copyright (c) 2016. All rights reserved.
What do you think about this topic? Send feedback!