GDS2PNG -- using KLayout
Problem
In some special application, the pattern load by machine must be .bmp
type picture file.
Solution
KLayout is a layout viewer and editor wihich is open source.

First, adjusting stipple and other layers properties. You must tick checkbox
Color
and choose any color you want.Then, in menu bar, opening
Macros->Macros Development
, the script interface will showed. Here we choose python, use code as following:
1 | resolution = 1 #um/pixel |
Run this script, and you will get a one-bit bmp file.
- Title: GDS2PNG -- using KLayout
- Author: Maple
- Created at : 2023-10-27 11:21:13
- Updated at : 2025-03-20 16:10:15
- Link: https://www.maple367.eu.org/Tools/gds2png-using-klayout/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments