Page 1 of 1

How to zoom to window and export to BMP

Posted: Wed Jun 12, 2019 4:47 pm
by levinsy
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

Re: How to zoom to window and export to BMP

Posted: Thu Jun 13, 2019 9:18 am
by andrew
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:

Code: Select all

properties["window"] = new RBox(x1, y2, x2, y2);

Re: How to zoom to window and export to BMP

Posted: Thu Jun 13, 2019 4:17 pm
by levinsy
Thanks.