Bitmap Export

Do you have a question you want to ask an existing QCAD user about QCAD and what you can do with it? Do you want to know if a particular feature exists? This is the place to ask.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
Kai
Registered Member
Posts: 2
Joined: Sun Oct 04, 2020 1:58 pm

Bitmap Export

Post by Kai » Sun Oct 04, 2020 2:27 pm

Hi,
I am relatively new to QCAD and apologize if the following problem has been already discussed before.
I would like to export a drawing as PNG. However, when using Bitmap Export the size (width and height) of the generated PNG file seems to be set solely by the maximum extensions of the drawing in horizontal and vertical direction, and is also not affected by the page size settings in the drawing preferences. Is there a way to export to a PNG where the exported section of the drawing can be set in size independent of the extension of the drawing, similar to defining custom page size settings when exporting to a PDF?
Any advice is appreciated.

CVH
Premier Member
Posts: 3364
Joined: Wed Sep 27, 2017 4:17 pm

Re: Bitmap Export

Post by CVH » Sun Oct 04, 2020 6:22 pm

Hi,
Bitmaps are defined by the number of pixels and dpi.
There is no such thing in bitmaps that define the paper/page size.

IMHO everthing you need is there:
Bitmap size in pixels.
The drawing unit to pixels factor or a native form of a dpi.
Background and other colors.
An additional margin and even a lineweight compensation.

XB rejects selections.
XB in model space export all visible in the document by default.
XB of a layout is restricted to what is viewed with the layout.

In any case the export has its width and height fixed in pixels by the dialog.
Auto scale will fill in the width or the height of what is found visible and calulates from there.
eg. 640 x 480px will always take a region that is 4:3

Regards,
CVH

Kai
Registered Member
Posts: 2
Joined: Sun Oct 04, 2020 1:58 pm

Re: Bitmap Export

Post by Kai » Tue Oct 06, 2020 4:09 pm

Hi CVH,
Thank you for your swift reply and explanation. The mentioned default export of all visible in the document does not allow one to add custom margins (e.g. 100 pixels top and bottom but 0 left and right). So in a way there is a page size that defines what is to be exported also for bitmaps. My use case requires the definition of the input (canvas) and rendered result (bitmap size). So a checkbox would be probably nice to honor this setting also for bitmap export. Alternatively, a custom definition of the export canvas (x0, x1, y0, y1) in addition to the existing rendered bitmap size would be helpful.
Regards,
Kai

Post Reply

Return to “Pre-sales Questions”