render several files #147
Closed
SergeyLavrinenko
started this conversation in
General
Replies: 2 comments
-
|
Quick response is that you have to manage it yourself. I will provide some code snippet showing how to use API to align the images as soon as I will have time to do that. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@SergeyLavrinenko I have just deployed PyGerber 2.3.0 which indeed provides native way for doing exactly that: from pygerber.examples import ExamplesEnum, load_example
from pygerber.gerberx3.api.v2 import FileTypeEnum, GerberFile, Project
Project(
[
GerberFile.from_str(
load_example(ExamplesEnum.simple_2layer_F_Cu),
FileTypeEnum.COPPER,
),
GerberFile.from_str(
load_example(ExamplesEnum.simple_2layer_F_Mask),
FileTypeEnum.MASK,
),
GerberFile.from_str(
load_example(ExamplesEnum.simple_2layer_F_Paste),
FileTypeEnum.PASTE,
),
GerberFile.from_str(
load_example(ExamplesEnum.simple_2layer_F_Silkscreen),
FileTypeEnum.SILK,
),
],
).parse().render_raster("output.png", dpmm=40) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
How to render multiple layers at the same time?
Beta Was this translation helpful? Give feedback.
All reactions