Skip to content

Bitmap Images

LinkCAD can import raster images (bitmaps) and convert them to vector polygon geometry suitable for mask layout or CAD conversion.

Format Summary

PropertyValue
Extensions.bmp, .png, .jpg, .jpeg, .tif, .tiff
EncodingBinary (various)
Import
Export
LicenseBasic

How It Works

Bitmap import traces the raster image to produce vector polygons:

  1. The image is thresholded to separate foreground from background
  2. Contour tracing identifies polygon boundaries
  3. Polygons are generated from the traced contours
  4. Coordinates are scaled based on the specified DPI and units

Import Options

OptionDescriptionDefault
DPIResolution of the source image300
UnitsTarget coordinate unitsMicron
ThresholdBrightness threshold for black/white separation128

Common Workflows

Bitmap → GDSII

Convert scanned mask images or bitmap artwork to GDSII layout data.

Bitmap → DXF

Vectorize raster graphics for use in CAD tools.

Export

LinkCAD can render any layout to a raster image. Three output formats are supported:

FormatExtensionNotes
PNG.pngLossless; recommended for mask images
TIFF.tiffLossless; widely supported in EDA tools
JPEG.jpgLossy; smaller files, not recommended for binary mask images

Export Options

OptionDescriptionDefault
ResolutionPixels per micron (or specified units)100
Anti-aliasingSmooth polygon edgesOff
Color spacePalette, grayscale, or RGBPalette

Common Export Workflows

GDSII → PNG

Render IC mask layout as a high-resolution PNG image for documentation or mask inspection.

GDSII → TIFF

Export layout as TIFF for use in photolithography or image-processing tools.

Technical Notes

  • The vectorization process works best with clean, high-contrast black-and-white images
  • Anti-aliased or blurred edges may produce noisy polygon boundaries
  • For best results, use high-resolution (300+ DPI) images with sharp edges
  • Color images are converted to grayscale before thresholding
  • Very large images may require significant memory and processing time

CLI / Command-File Options

These option keys can be used on the command line or in command files.

Import

KeyTypeDescription
RasterInScalingUnitsintScaling unit enum (see Units)
RasterInScalingValuefloatScaling value
RasterInScalingValueYfloatY-axis scaling value (non-square pixels)
RasterInGrayLevelsintNumber of gray levels for vectorization
RasterInKeepWhiteflagKeep white pixels as shapes
RasterInMergeTypeintMerge mode — 0=none, 1=horizontal, 2=all adjacent

Export

KeyTypeDescription
RasterOutScalingUnitsintScaling unit enum (see Units)
RasterOutScalingValuefloatPixels per unit in X direction
RasterOutYScalingValuefloatPixels per unit in Y direction
RasterOutAntiAliasingflagEnable anti-aliasing
RasterOutColorSpaceintColor space — 0=palette, 1=grayscale, 2=RGB
RasterInProcessingintProcessing mode — 0=threshold 50%, 1=dither, 2=split gray levels