Replies: 3 comments
-
It depends what do you mean by "without saving". If what you want is to avoid creation of two separate image files on drive, then yes, it is possible via API, with However, if you were asking about rendering two images in batch (so you won't have to merge them manually) for example with command line, unfortunately it is not possible (yet). In latter case may consider creating issue for it with description of what you need and how you want it to work. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. I think I'll give the Rasterized2DResultHandle a try. |
Beta Was this translation helpful? Give feedback.
-
@lookme2 I have just deployed PyGerber 2.3.0 which 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.
-
I am working on merging the silk screen and top copper of a board. Can this be done without saving two sperate image files?
Beta Was this translation helpful? Give feedback.
All reactions