Slice Image Exporter
[Slices][Desktop Automation]
Properties
Property | Read/write | Type | Description |
---|---|---|---|
backgroundcolor | read/write | number | color of the background |
basefilename | read/write | string | base file name of the images |
closedcontourcolor | read/write | number | color of the closed contours |
closedcontourwidth | read/write | number | width of the closed contours in mm |
dpix | read/write | number | dpi in X |
dpiy | read/write | number | dpi in Y |
dofillingbooled | read/write | Boolean | |
exportmonochromeimages | read/write | Boolean | Render images in monochrome. (Actually, export is in 24-bit RGB using only gray tones.) |
fillclosedcontours | read/write | Boolean | Shall the closed contours be filled? |
fillcolor | read/write | number | color of the filling |
filterradius | read/write | number | Radius for Gaussian filter (See Slice Filtering for details) |
filtersigma | read/write | number | Sigma for the Gaussian filter (See Slice Filtering for details) |
filtertype | Read/write | number | Define the filtertype for the slice export: 0: no filtering 1: Gaussian 2: Oversampling 3: Antialiasing 4: Enhanced Oversampling (See Slice Filtering for details) |
hatchcolor | read/write | number | color of the hatches |
hatchwidth | read/write | number | width of the hatch in mm |
height | read/write | number | height of image in pixels |
left | read/write | number | left space of the image in pixels |
maxx | read | number | maximum X of the image |
maxy | read | number | maximum Y of the image |
maxz | read | number | maximum Z of the image |
minx | read | number | minimum X of the image |
miny | read | number | minimum Y of the image |
minz | read | number | minimum Z of the image |
opencontourcolor | read/write | number | color of the open colours |
opencontourwidth | read/write | number | width of the open contours in mm |
separatesupports | Read/write | Boolean | Create separate slice images for part and support |
supportbasename | Read/write | string | Basename of the support images (only used if separatesupports is set to true ) |
supportthickness | Read/write | Number | Hatches and contours of supports are traced with lines of this thickness during conversion to image. Only observed by exportpngmulticore. |
solidflattop | Read/write | Boolean | Flag to turn off (true) anti-aliasing on the uppermost layer of the slice stack |
writeopencontours | read/write | Boolean | Shall the open contours be written? |
Methods
Name | Syntax | Description |
---|---|---|
addsupport | imageexporter:addsupport(slice:slice object) | adds a slice stack explicitly defined as supports so that the respective export method can handle it appropriately. Currently, only the exportpngmulticore method observes these supports. |
exportbmp | imagexporter:exportbmp(identifier:String); | export slices as BMP |
exportpng | imagexporter:exportpng(identifier:String); | export slices as PNG |
exportpngmulticore | imagexporter:exportpngmulticore(identifier:String); | export slices as PNG with multicore support for faster calculation |
Slice Filtering
The Netfabb Lua slice export supports various filter types:
- No filter: No filtering
- Gaussian: Gauss filter with the parameters
filterradius
andfiltersigma
- Oversampling: An image with twice the size in width and height (in the end the image is four times as big) is created and on final slice creation four pixels are sampled into one.
- Antialiased: A simple blur on the slice image
- Enhanced Oversampling: After oversampling, the pixels of the image are processed again. If a pixel is not set to full white, all surrounding pixels are checked, and only if at least one fully set pixel is encountered the grey pixel is kept, otherwise it's set to black.