Hi,
I'd like to know if it's possible to zoom to a window and export only that window to a bmp using the js api.
Thanks,
Yair
How to zoom to window and export to BMP
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Re: How to zoom to window and export to BMP
Yes, have a look at BitmapExportWorker:
https://github.com/qcad/qcad/blob/maste ... tWorker.js
Parameter "window" can contain an RBox with the coordinates of the window to export:
https://github.com/qcad/qcad/blob/maste ... tWorker.js
Parameter "window" can contain an RBox with the coordinates of the window to export:
Code: Select all
properties["window"] = new RBox(x1, y2, x2, y2);