class

CrImage::Draw::MarkerStyle

Inherits Reference / Object

MarkerStyle defines the appearance of a marker.

Constructors

filled(type : MarkerType, color : Color::Color, size : Int32 = 8) : MarkerStyle

Preset: filled marker

Source
filled_outlined(type : MarkerType, fill : Color::Color, stroke : Color::Color, size : Int32 = 8, thickness : Int32 = 1) : MarkerStyle

Preset: filled with outline

Source
new(type : CrImage::Draw::MarkerType = MarkerType::Circle, size : Int32 = 8, fill_color : CrImage::Color::Color | Nil = nil, stroke_color : CrImage::Color::Color | Nil = nil, stroke_thickness : Int32 = 1)
Source
outlined(type : MarkerType, color : Color::Color, size : Int32 = 8, thickness : Int32 = 2) : MarkerStyle

Preset: outlined marker

Source

Instance methods

fill_color
Source
fill_color=(fill_color : Color::Color | Nil)
Source
size
Source
size=(size : Int32)
Source
stroke_color
Source
stroke_color=(stroke_color : Color::Color | Nil)
Source
stroke_thickness
Source
stroke_thickness=(stroke_thickness : Int32)
Source
type
Source
type=(type : MarkerType)
Source