class

CrImage::Draw::LineStyle

Inherits Reference / Object

LineStyle defines the visual appearance of a line.

Properties:

  • color : Line color
  • thickness : Line width in pixels
  • anti_alias : Enable smooth edges

Example:

style = CrImage::Draw::LineStyle.new(
  CrImage::Color::RED,
  thickness: 2,
  anti_alias: true
)

Constructors

build

DSL-style builder

Source
new(color : CrImage::Color::Color, thickness : Int32 = 1, anti_alias : Bool = false)
Source

Instance methods

anti_alias
Source
anti_alias=(anti_alias : Bool)
Source
color
Source
color=(color : Color::Color)
Source
thickness
Source
thickness=(thickness : Int32)
Source
with_anti_alias(enabled : Bool = true) : self
Source
with_color(color : Color::Color) : self
Source
with_thickness(thickness : Int32) : self

Builder pattern methods for fluent API

Source