Example #1
0
def export(fin, **kwargs):
    fout = tempfile.NamedTemporaryFile(
        prefix='eagexp_test_', suffix='.png', delete=0)
    fout = Path(fout.name)
    export_image(fin, fout, showgui=VISIBLE, **kwargs)
    assert fout.exists()
Example #2
0
'''
Example for image export with various options
'''

from eagexp import image

brd = '/usr/share/eagle/projects/examples/tutorial/demo2.brd'

if __name__ == "__main__":
    # set resolution in DPI
    image.export_image(brd, 'api_brd_50.png', resolution=50)
    image.export_image(brd, 'api_brd_100.png', resolution=100)
    image.export_image(brd, 'api_brd_150.png', resolution=150)
    
    # mirror image
    image.export_image(brd, 'api_brd_mirror.png', mirror=True)
    
    # display only 2 layers
    image.export_image(brd, 'api_brd_layer.png', layers=['dimension', 'pads'])
    
    # display layer using eagle command
    image.export_image(
        brd, 'api_brd_command.png', command='display none dimension')
Example #3
0
 def export_func(fname_sch, fname_img_abs):
     export_image(fname_sch, fname_img_abs, palette=palette, resolution=resolution, timeout=timeout, layers=layers, mirror=mirror, command=command)