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.
Bitmap Export
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: Bitmap Export
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
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
Re: Bitmap Export
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
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