struct

CrImage::Draw::CornerRadii

Inherits Struct / Value / Object

CornerRadii defines individual corner radii for rounded rectangles.

Constructors

bottom(radius : Int32) : CornerRadii

Bottom corners only

Source
left(radius : Int32) : CornerRadii

Left corners only

Source
new(top_left : Int32 = 0, top_right : Int32 = 0, bottom_right : Int32 = 0, bottom_left : Int32 = 0)
Source
right(radius : Int32) : CornerRadii

Right corners only

Source
top(radius : Int32) : CornerRadii

Top corners only (useful for bar charts)

Source
uniform(radius : Int32) : CornerRadii

Uniform radius for all corners

Source

Instance methods

bottom_left
Source
bottom_left=(bottom_left : Int32)
Source
bottom_right
Source
bottom_right=(bottom_right : Int32)
Source
top_left
Source
top_left=(top_left : Int32)
Source
top_right
Source
top_right=(top_right : Int32)
Source