oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Drawing

Classes

class  oevislib_net.DrawingStyle
 Defines the style of objects to be drawn on an image. More...

Functions

static void oevislib_net.Image.DrawCircle (Image ioImage, Circle2D inCircle, Pixel inColor, UCS2D inCircleAlignment, DrawingStyle inDrawingStyle, bool inForceRgb)
 Draws a circle on an image.
static void oevislib_net.Image.DrawCircles (Image ioImage, Array< Circle2D > inCircles, Array< Pixel > inColors, Array< UCS2D > inCircleAlignments, DrawingStyle inDrawingStyle, bool inForceRgb)
 Draws multiple circles on an image.
static void oevislib_net.Image.DrawEllipse (Image ioImage, Ellipse2D inEllipse, Pixel inColor, UCS2D inEllipseAlignment, DrawingStyle inDrawingStyle, bool inForceRgb)
 Draws an ellipse on an image.
static void oevislib_net.Image.DrawEllipses (Image ioImage, Array< Ellipse2D > inEllipses, Array< Pixel > inColors, Array< UCS2D > inEllipseAlignments, DrawingStyle inDrawingStyle, bool inForceRgb)
 Draws multiple ellipses on an image.
static void oevislib_net.Image.DrawPath (Image ioImage, Path inPath, Pixel inColor, UCS2D inPathAlignment, DrawingStyle inDrawingStyle, bool inForceRgb)
 Draws a path on an image.
static void oevislib_net.Image.DrawPaths (Image ioImage, Array< Path > inPaths, Array< Pixel > inColors, Array< UCS2D > inPathAlignments, DrawingStyle inDrawingStyle, bool inForceRgb)
 Draws multiple paths on an image.
static void oevislib_net.Image.DrawRectangle (Image ioImage, Rectangle2D inRectangle, Pixel inColor, UCS2D inRectangleAlignment, DrawingStyle inDrawingStyle, bool inForceRgb)
 Draws a rectangle on an image.
static void oevislib_net.Image.DrawRectangles (Image ioImage, Array< Rectangle2D > inRectangles, Array< Pixel > inColors, Array< UCS2D > inRectangleAlignments, DrawingStyle inDrawingStyle, bool inForceRgb)
 Draws multiple rectangles on an image.
static void oevislib_net.Image.DrawRegion (Image ioImage, Region inRegion, Pixel inColor, UCS2D inRegionAlignment, float inOpacity, bool inForceRgb)
 Draws a region on an image.
static void oevislib_net.Image.DrawRegions (Image ioImage, Array< Region > inRegions, Array< Pixel > inColors, Array< UCS2D > inRegionAlignments, float inOpacity, bool inForceRgb)
 Draws a region on an image.
static void oevislib_net.Image.DrawRing (Image ioImage, Ring2D inRing, Pixel inColor, UCS2D inRingAlignment, DrawingStyle inDrawingStyle, bool inForceRgb)
 Draws a ring on an image.
static void oevislib_net.Image.DrawRings (Image ioImage, Array< Ring2D > inRings, Array< Pixel > inColors, Array< UCS2D > inRingAlignments, DrawingStyle inDrawingStyle, bool inForceRgb)
 Draws multiple rings on an image.
static void oevislib_net.Image.DrawString (Image ioImage, string inString, string inFont, int inSize, Pixel inColor, Point2Di inPosition, UCS2D inPositionAlignment, Anchor2D inPositionAnchor, bool inForceRgb)
 Draws a string on an image.
static void oevislib_net.Image.DrawStrings (Image ioImage, Array< string > inStrings, string inFont, int inSize, Array< Pixel > inColors, Array< Point2Di > inPositions, Array< UCS2D > inPositionAlignments, Array< Anchor2D > inPositionAnchors, bool inForceRgb)
 Draw multiple strings on an image.

Detailed Description

Function Documentation

◆ DrawCircle()

void oevislib_net.Image.DrawCircle ( Image ioImage,
Circle2D inCircle,
Pixel inColor,
UCS2D inCircleAlignment,
DrawingStyle inDrawingStyle,
bool inForceRgb )
inlinestatic

Draws a circle on an image.

Parameters
ioImageWhere to draw the object.
inCircleCircle to draw.
inColorColor of the circle.
inCircleAlignmentAlignment of the circle.
inDrawingStyleDrawing style.
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawCircles()

void oevislib_net.Image.DrawCircles ( Image ioImage,
Array< Circle2D > inCircles,
Array< Pixel > inColors,
Array< UCS2D > inCircleAlignments,
DrawingStyle inDrawingStyle,
bool inForceRgb )
inlinestatic

Draws multiple circles on an image.

Parameters
ioImageWhere to draw the object.
inCirclesCircle to draw.
inColorsColors of the circles. If the array has only one element, that color is used for all circles (otherwise its size must be equal to the number of circles).
inCircleAlignmentsAlignments of the circles. If the array has only one element, that alignment is used for all circles (otherwise its size must be equal to the number of circles).
inDrawingStyleDrawing style.
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawEllipse()

void oevislib_net.Image.DrawEllipse ( Image ioImage,
Ellipse2D inEllipse,
Pixel inColor,
UCS2D inEllipseAlignment,
DrawingStyle inDrawingStyle,
bool inForceRgb )
inlinestatic

Draws an ellipse on an image.

Parameters
ioImageWhere to draw the object.
inEllipseEllipse to draw.
inColorColor of the ellipse.
inEllipseAlignmentAlignment of the ellipse.
inDrawingStyleDrawing style.
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawEllipses()

void oevislib_net.Image.DrawEllipses ( Image ioImage,
Array< Ellipse2D > inEllipses,
Array< Pixel > inColors,
Array< UCS2D > inEllipseAlignments,
DrawingStyle inDrawingStyle,
bool inForceRgb )
inlinestatic

Draws multiple ellipses on an image.

Parameters
ioImageWhere to draw the object.
inEllipsesEllipse to draw.
inColorsColors of the ellipses. If the array has only one element, that color is used for all ellipses (otherwise its size must be equal to the number of ellipses).
inEllipseAlignmentsAlignments of the ellipses. If the array has only one element, that alignment is used for all ellipses (otherwise its size must be equal to the number of ellipses).
inDrawingStyleDrawing style.
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawPath()

void oevislib_net.Image.DrawPath ( Image ioImage,
Path inPath,
Pixel inColor,
UCS2D inPathAlignment,
DrawingStyle inDrawingStyle,
bool inForceRgb )
inlinestatic

Draws a path on an image.

Parameters
ioImageWhere to draw the object.
inPathPath to draw.
inColorColor of the path.
inPathAlignmentAlignment of the path.
inDrawingStyleDrawing style.
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawPaths()

void oevislib_net.Image.DrawPaths ( Image ioImage,
Array< Path > inPaths,
Array< Pixel > inColors,
Array< UCS2D > inPathAlignments,
DrawingStyle inDrawingStyle,
bool inForceRgb )
inlinestatic

Draws multiple paths on an image.

Parameters
ioImageWhere to draw the object.
inPathsPath to draw.
inColorsColors of the paths. If the array has only one element, that color is used for all paths (otherwise its size must be equal to the number of paths).
inPathAlignmentsAlignments of the paths. If the array has only one element, that alignment is used for all paths (otherwise its size must be equal to the number of paths).
inDrawingStyleDrawing style.
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawRectangle()

void oevislib_net.Image.DrawRectangle ( Image ioImage,
Rectangle2D inRectangle,
Pixel inColor,
UCS2D inRectangleAlignment,
DrawingStyle inDrawingStyle,
bool inForceRgb )
inlinestatic

Draws a rectangle on an image.

Parameters
ioImageWhere to draw the object.
inRectangleRectangle to draw.
inColorColor of the rectangle.
inRectangleAlignmentAlignment of the rectangle.
inDrawingStyleDrawing style.
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawRectangles()

void oevislib_net.Image.DrawRectangles ( Image ioImage,
Array< Rectangle2D > inRectangles,
Array< Pixel > inColors,
Array< UCS2D > inRectangleAlignments,
DrawingStyle inDrawingStyle,
bool inForceRgb )
inlinestatic

Draws multiple rectangles on an image.

Parameters
ioImageWhere to draw the object.
inRectanglesRectangle to draw.
inColorsColors of the rectangles. If the array has only one element, that color is used for all rectangles (otherwise its size must be equal to the number of rectangles).
inRectangleAlignmentsAlignments of the rectangles. If the array has only one element, that alignment is used for all rectangles (otherwise its size must be equal to the number of rectangles).
inDrawingStyleDrawing style.
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawRegion()

void oevislib_net.Image.DrawRegion ( Image ioImage,
Region inRegion,
Pixel inColor,
UCS2D inRegionAlignment,
float inOpacity,
bool inForceRgb )
inlinestatic

Draws a region on an image.

Parameters
ioImageWhere to draw the object.
inRegionRegion to draw.
inColorColor of the region.
inRegionAlignmentAlignment of the region.
inOpacityOpacity of the region. Range: [0, 1].
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawRegions()

void oevislib_net.Image.DrawRegions ( Image ioImage,
Array< Region > inRegions,
Array< Pixel > inColors,
Array< UCS2D > inRegionAlignments,
float inOpacity,
bool inForceRgb )
inlinestatic

Draws a region on an image.

Parameters
ioImageWhere to draw the objects.
inRegionsRegions to draw.
inColorsColors of the regions.
inRegionAlignmentsAlignment of the regions.
inOpacityOpacity of the regions. Range: [0, 1].
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawRing()

void oevislib_net.Image.DrawRing ( Image ioImage,
Ring2D inRing,
Pixel inColor,
UCS2D inRingAlignment,
DrawingStyle inDrawingStyle,
bool inForceRgb )
inlinestatic

Draws a ring on an image.

Parameters
ioImageWhere to draw the object.
inRingRing to draw.
inColorColor of the ring.
inRingAlignmentAlignment of the ring.
inDrawingStyleDrawing style.
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawRings()

void oevislib_net.Image.DrawRings ( Image ioImage,
Array< Ring2D > inRings,
Array< Pixel > inColors,
Array< UCS2D > inRingAlignments,
DrawingStyle inDrawingStyle,
bool inForceRgb )
inlinestatic

Draws multiple rings on an image.

Parameters
ioImageWhere to draw the object.
inRingsRing to draw.
inColorsColors of the rings. If the array has only one element, that color is used for all rings (otherwise its size must be equal to the number of rings).
inRingAlignmentsAlignments of the rings. If the array has only one element, that alignment is used for all rings (otherwise its size must be equal to the number of rings).
inDrawingStyleDrawing style.
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawString()

void oevislib_net.Image.DrawString ( Image ioImage,
string inString,
string inFont,
int inSize,
Pixel inColor,
Point2Di inPosition,
UCS2D inPositionAlignment,
Anchor2D inPositionAnchor,
bool inForceRgb )
inlinestatic

Draws a string on an image.

Parameters
ioImageWhere to draw the string.
inStringString to represent.
inFontFont to use (.ttf/.ttc/.otf file).
inSizeFont height in pixels.
inColorColor of the string.
inPositionPosition of the string.
inPositionAlignmentAlignment of the string position.
inPositionAnchorRelative place of the string from the specified position.
inForceRgbWhether to first convert the image to RGB, if necessary.

◆ DrawStrings()

void oevislib_net.Image.DrawStrings ( Image ioImage,
Array< string > inStrings,
string inFont,
int inSize,
Array< Pixel > inColors,
Array< Point2Di > inPositions,
Array< UCS2D > inPositionAlignments,
Array< Anchor2D > inPositionAnchors,
bool inForceRgb )
inlinestatic

Draw multiple strings on an image.

Parameters
ioImageWhere to draw the strings.
inStringsStrings to represent.
inFontFont to use (.ttf/.ttc/.otf file).
inSizeFont height in pixels.
inColorsColors of the strings. If the array has only one element, that color is used for all strings (otherwise its size must be equal to the number of strings).
inPositionsPositions of the strings.
inPositionAlignmentsAlignments for strings positions. If the array has only one element, that alignment is used for all strings (otherwise its size must be equal to the number of strings).
inPositionAnchorsRelative places of the strings from the specified positions. If the array has only one element, that anchor is used for all strings (otherwise its size must be equal to the number of strings).
inForceRgbWhether to first convert the image to RGB, if necessary.