How to zoom to window and export to BMP

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
levinsy
Newbie Member
Posts: 6
Joined: Wed Jun 12, 2019 4:38 pm

How to zoom to window and export to BMP

Post by levinsy » Wed Jun 12, 2019 4:47 pm

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

User avatar
andrew
Site Admin
Posts: 9061
Joined: Fri Mar 30, 2007 6:07 am

Re: How to zoom to window and export to BMP

Post by andrew » Thu Jun 13, 2019 9:18 am

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);

levinsy
Newbie Member
Posts: 6
Joined: Wed Jun 12, 2019 4:38 pm

Re: How to zoom to window and export to BMP

Post by levinsy » Thu Jun 13, 2019 4:17 pm

Thanks.

Post Reply

Return to “QCAD 'How Do I' Questions”