class

CrImage::Draw::ArrowStyle

Inherits Reference / Object

ArrowStyle defines the appearance of an arrow.

Constructors

double(color : Color::Color, thickness : Int32 = 2, head_size : Int32 = 12) : ArrowStyle

Preset: double arrow (heads at both ends)

Source
new(color : CrImage::Color::Color, thickness : Int32 = 1, head_type : CrImage::Draw::ArrowHeadType = ArrowHeadType::Triangle, head_size : Int32 = 10, head_at_start : Bool = false, head_at_end : Bool = true, anti_alias : Bool = false)
Source
open(color : Color::Color, thickness : Int32 = 2, head_size : Int32 = 12) : ArrowStyle

Preset: open arrow head

Source
single(color : Color::Color, thickness : Int32 = 2, head_size : Int32 = 12) : ArrowStyle

Preset: single arrow (head at end)

Source

Instance methods

anti_alias
Source
anti_alias=(anti_alias : Bool)
Source
color
Source
color=(color : Color::Color)
Source
head_at_end
Source
head_at_end=(head_at_end : Bool)
Source
head_at_start
Source
head_at_start=(head_at_start : Bool)
Source
head_size
Source
head_size=(head_size : Int32)
Source
head_type
Source
head_type=(head_type : ArrowHeadType)
Source
thickness
Source
thickness=(thickness : Int32)
Source