Method Image.Image()->outline()
- Method outline
outline()object
outline(objectintolr,intolg,intolb)
outline(objectintolr,intolg,intolb,intbkgr,intbkgg,intbkgb)
outline(objectarray(array(int))mask)
outline(objectarray(array(int))mask,intolr,intolg,intolb)
outline(objectarray(array(int))mask,intolr,intolg,intolb,intbkgr,intbkgg,intbkgb)
outline_mask()object
outline_mask(objectintbkgr,intbkgg,intbkgb)
outline_mask(objectarray(array(int))mask)
outline_mask(objectarray(array(int))mask,intbkgr,intbkgg,intbkgb)- Description
-
Makes an outline of this image, ie paints with the given color around the non-background pixels.
Default is to paint above, below, to the left and the right of these pixels.
You can also run your own outline mask.
The outline_mask function gives the calculated outline as an alpha channel image of white and black instead.



original masked
through
threshold...and
outlined
with red - Parameter
mask -
mask matrix. Default is ({({0,1,0}),({1,1,1}),({0,1,0})}).
- Parameter
olr - Parameter
olg - Parameter
olb -
outline color. Default is current.
- Parameter
bkgr - Parameter
bkgg - Parameter
bkgb -
background color (what color to outline to); default is color of pixel 0,0.
- Parameter
div -
division factor, default is 1.0.
- Returns
-
the new image object
- Note
-
no antialias!