class

Pixie::Brush

Inherits Pixie::Helpers / Reference / Object

The Brush class wraps LibMagick::DrawingWand and provides a simple interface for drawing on an image.

Constructors

new(image : Pointer(LibMagick::Image), draw_info : Pointer(LibMagick::DrawInfo))
Source
new(image : Image, draw_info : LibMagick::DrawInfo)
Source
new(wand : Pointer(LibMagick::DrawingWand))
Source
new(image : Image, &block : LibMagick::DrawInfo -> )
Source

Instance methods

affine(sx : Float64, sy : Float64, rx : Float64, ry : Float64, tx : Float64, ty : Float64)
Source
alpha(x : Int32, y : Int32, paint_method : LibMagick::PaintMethod = :point)
Source
annotation(x : Int32, y : Int32, text : String)
Source
arc(start_x : Float64, start_y : Float64, end_x : Float64, end_y : Float64, start_angle : Float64, end_angle : Float64)
Source
bezier(coordinates : Array(Float64))
Source
circle(origin_x : Float64, origin_y : Float64, perim_x : Float64, perim_y : Float64)
Source
clear
Source
clone
Source
color(x : Int32, y : Int32, paint_method : LibMagick::PaintMethod = :point)
Source
comment(comment : String)
Source
composite(compose : LibMagick::CompositeOperator, x : Int32, y : Int32, width : Int32, height : Int32, image : Image)
Source
ellipse(origin_x : Float64, origin_y : Float64, radius_x : Float64, radius_y : Float64, start_angle : Float64, end_angle : Float64)
Source
finalize
Source
get_border_color
Source
get_clip_path
Source
get_clip_rule
Source
get_clip_units
Source
get_draw_density
Source
get_fill_color
Source
get_fill_opacity
Source
get_fill_rule
Source
get_font
Source
get_font_family
Source
get_font_resolution
Source
get_font_size
Source
get_font_stretch
Source
get_font_style
Source
get_font_weight
Source
get_gravity
Source
get_stroke_antialias
Source
get_stroke_color
Source
get_stroke_dash_array
Source
get_stroke_dash_offset
Source
get_stroke_line_cap
Source
get_stroke_line_join
Source
get_stroke_miter_limit
Source
get_stroke_opacity
Source
get_stroke_width
Source
get_text_alignment
Source
get_text_antialias
Source
get_text_decoration
Source
get_text_direction
Source
get_text_encoding
Source
get_text_interline_spacing
Source
get_text_interword_spacing
Source
get_text_kerning
Source
get_text_under_color
Source
get_vector_graphics
Source
info
Source
line(start_x : Float64, start_y : Float64, end_x : Float64, end_y : Float64)
Source
path_close
Source
path_curve_to_absolute(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, x : Float64, y : Float64)
Source
path_curve_to_quadratic_bezier_absolute(x1 : Float64, y1 : Float64, x : Float64, y : Float64)
Source
path_curve_to_quadratic_bezier_relative(x1 : Float64, y1 : Float64, x : Float64, y : Float64)
Source
path_curve_to_quadratic_bezier_smooth_absolute(x : Float64, y : Float64)
Source
path_curve_to_quadratic_bezier_smooth_relative(x : Float64, y : Float64)
Source
path_curve_to_relative(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, x : Float64, y : Float64)
Source
path_curve_to_smooth_absolute(x2 : Float64, y2 : Float64, x : Float64, y : Float64)
Source
path_curve_to_smooth_relative(x2 : Float64, y2 : Float64, x : Float64, y : Float64)
Source
path_elliptic_arc_absolute(rx : Float64, ry : Float64, x_axis_rotation : Float64, large_arc_flag : Bool, sweep_flag : Bool, x : Float64, y : Float64)
Source
path_elliptic_arc_relative(rx : Float64, ry : Float64, x_axis_rotation : Float64, large_arc_flag : Bool, sweep_flag : Bool, x : Float64, y : Float64)
Source
path_finish
Source
path_line_to_absolute(x : Float64, y : Float64)
Source
path_line_to_horizontal_absolute(x : Float64)
Source
path_line_to_horizontal_relative(x : Float64)
Source
path_line_to_relative(x : Float64, y : Float64)
Source
path_line_to_vertical_absolute(y : Float64)
Source
path_line_to_vertical_relative(y : Float64)
Source
path_move_to_absolute(x : Float64, y : Float64)
Source
path_move_to_relative(x : Float64, y : Float64)
Source
path_start
Source
point(x : Float64, y : Float64)
Source
polygon(number_coordinates : Int32, x : Float64, y : Float64)
Source
polyline(number_coordinates : Int32, x : Float64, y : Float64)
Source
pop_clip_path
Source
pop_defs
Source
pop_pattern
Source
push
Source
push_clip_path(id : String)
Source
push_defs
Source
push_pattern(id : String, x : Float64, y : Float64, width : Float64, height : Float64)
Source
rectangle(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64)
Source
render
Source
reset_vector_graphics
Source
rotate(degrees : Float64)
Source
round_rectangle(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, rx : Float64, ry : Float64)
Source
scale(x : Float64, y : Float64)
Source
set_border_color(border_color : Pixel)
Source
set_clip_path(clip_mask_id : String)
Source
set_clip_rule(fill_rule : FillRule)
Source
set_clip_units(units : ClipPathUnits)
Source
set_density(density : String)
Source
set_fill_color(fill_color : Pixel)
Source
set_fill_opacity(fill_opacity : Float64)
Source
set_fill_pattern_url(fill_url : String)
Source
set_fill_rule(fill_rule : FillRule)
Source
set_font(font : String)
Source
set_font_family(font_family : String)
Source
set_font_resolution(x : Float64, y : Float64)
Source
set_font_size(pointsize : Float64)
Source
set_font_stretch(font_stretch : StretchType)
Source
set_font_style(font_style : StyleType)
Source
set_font_weight(font_weight : Int32)
Source
set_gravity(gravity : GravityType)
Source
set_opacity(opacity : Float64)
Source
set_stroke_antialias(antialias : Bool)
Source
set_stroke_color(stroke_color : Pixel)
Source
set_stroke_dash_array(dash_array : Float64)
Source
set_stroke_dash_offset(dash_offset : Float64)
Source
set_stroke_line_cap(line_cap : LineCap)
Source
set_stroke_line_join(line_join : LineJoin)
Source
set_stroke_miter_limit(miterlimit : Int32)
Source
set_stroke_opacity(stroke_opacity : Float64)
Source
set_stroke_width(stroke_width : Float64)
Source
set_text_alignment(alignment : AlignType)
Source
set_text_antialias(antialias : Bool)
Source
set_text_decoration(decoration : DecorationType)
Source
set_text_direction(direction : DirectionType)
Source
set_text_encoding(encoding : String)
Source
set_text_interline_spacing(spacing : Float64)
Source
set_text_interword_spacing(spacing : Float64)
Source
set_text_kerning(kerning : Float64)
Source
set_text_under_color(under_color : Pixel)
Source
set_vector_graphics(vector_graphics : String)
Source
set_viewbox(x1 : Int32, y1 : Int32, x2 : Int32, y2 : Int32)
Source
skew_x(degrees : Float64)
Source
skew_y(degrees : Float64)
Source
to_unsafe
Source
translate(x : Float64, y : Float64)
Source