CrImage::Draw::LineStyle
Inherits Reference / Object
LineStyle defines the visual appearance of a line.
Properties:
color: Line colorthickness: Line width in pixelsanti_alias: Enable smooth edges
Example:
style = CrImage::Draw::LineStyle.new(
CrImage::Color::RED,
thickness: 2,
anti_alias: true
)
Constructors
Instance methods
anti_alias
Sourceanti_alias=(anti_alias : Bool)
Sourcecolor
Sourcecolor=(color : Color::Color)
Sourcethickness
Sourcethickness=(thickness : Int32)
Sourcewith_anti_alias(enabled : Bool = true) : self
Sourcewith_color(color : Color::Color) : self
Source