class

Blend2D::Rendering::Context

Inherits Blend2D::Core < Reference < Object

Constructors

new(image : Image)
Source

Instance methods

apply_transform_op(op : TransformOp, data : Array(Float64))
Source
begin(image : Image)
Source
blit_image(origin : Point | PointI, img : Image, img_area : RectI | Nil = nil)
Source
blit_scaled_image(rect : Rect | RectI, img : Image, img_area : RectI | Nil = nil)
Source
clear_all
Source
clear_rect(x : Float64, y : Float64, w : Float64, h : Float64)
Source
clear_rect(rect : Rect | RectI)
Source
clip_to_rect(x : Float64, y : Float64, w : Float64, h : Float64)
Source
clip_to_rect(rect : Rect | RectI)
Source
comp_op
Source
comp_op=(comp_op : CompOp)
Source
disable_fill_style
Source
disable_stroke_style
Source
fill_all(style : Style | Nil = nil)
Source
fill_alpha
Source
fill_alpha=(alpha : Float64)
Source
fill_arc(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start : Float64, sweep : Float64, style : Style | Nil = nil)
Source
fill_arc(arc : Arc, style : Style | Nil = nil)
Source
fill_box(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64, style : Style | Nil = nil)
Source
fill_box(box : Box | BoxI, style : Style | Nil = nil)
Source
fill_chord(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start : Float64, sweep : Float64, style : Style | Nil = nil)
Source
fill_chord(chord : Chord, style : Style | Nil = nil)
Source
fill_circle(cx : Float64, cy : Float64, r : Float64, style : Style | Nil = nil)
Source
fill_circle(circle : Circle, style : Style | Nil = nil)
Source
fill_ellipse(cx : Float64, cy : Float64, rx : Float64, ry : Float64, style : Style | Nil = nil)
Source
fill_ellipse(ellipse : Ellipse, style : Style | Nil = nil)
Source
fill_geometry(geometry : Geometry::Core, style : Style | Nil = nil)
Source
fill_glyph_run(origin : Tuple(Number, Number), font : Font, glyph_run : GlyphRun, style : Style | Nil = nil)
Source
fill_glyph_run(origin : Point | PointI, font : Font, glyph_run : GlyphRun, style : Style | Nil = nil)
Source
fill_line(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64, style : Style | Nil = nil)
Source
fill_line(line : Line, style : Style | Nil = nil)
Source
fill_mask(origin : Point | PointI, mask : Image, style : Style | Nil = nil)
Source
fill_mask(origin : Point | PointI, mask : Image, mask_area : RectI, style : Style | Nil = nil)
Source
fill_path(path : Path, style : Style | Nil = nil)
Source
fill_path(origin : Tuple(Float64, Float64), path : Path, style : Style | Nil = nil)
Source
fill_path(origin : Point, path : Path, style : Style | Nil = nil)
Source
fill_pie(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start : Float64, sweep : Float64, style : Style | Nil = nil)
Source
fill_pie(pie : Pie, style : Style | Nil = nil)
Source
fill_rect(x : Float64, y : Float64, w : Float64, h : Float64, style : Style | Nil = nil)
Source
fill_rect(rect : Rect | RectI, style : Style | Nil = nil)
Source
fill_round_rect(x : Float64, y : Float64, w : Float64, h : Float64, rx : Float64, ry : Float64, style : Style | Nil = nil)
Source
fill_round_rect(x : Float64, y : Float64, w : Float64, h : Float64, r : Float64, style : Style | Nil = nil)
Source
fill_round_rect(round_rect : RoundRect, style : Style | Nil = nil)
Source
fill_rule
Source
fill_rule=(fill_rule : FillRule)
Source
fill_style
Source
fill_style=(style : Style)
Source
fill_text(origin : Tuple(Number, Number), font : Font, text : String, style : Style | Nil = nil)
Source
fill_text(origin : Point | PointI, font : Font, text : String, style : Style | Nil = nil)
Source
fill_triangle(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, style : Style | Nil = nil)
Source
fill_triangle(triangle : Triangle, style : Style | Nil = nil)
Source
final_transform
Source
finalize
Source
flatten_mode=(mode : FlattenMode)
Source
flatten_tolerance=(tolerance : Float64)
Source
global_alpha
Source
global_alpha=(alpha : Float64)
Source
gradient_quality
Source
gradient_quality=(gradient_quality : GradientQuality)
Source
hint(hint_type : ContextHint) : UInt32
Source
hints
Source
hints=(hints : ContextHints)
Source
meta_transform
Source
pattern_quality
Source
pattern_quality=(pattern_quality : PatternQuality)
Source
post_rotate(angle : Float64, x : Float64, y : Float64)
Source
post_rotate(angle : Float64)
Source
post_scale(x : Float64, y : Float64)
Source
post_skew(x : Float64, y : Float64)
Source
post_transform(matrix : Matrix2D)
Source
post_translate(x : Float64, y : Float64)
Source
rendering_quality
Source
rendering_quality=(rendering_quality : RenderingQuality)
Source
reset_transform
Source
restore
Source
restore_clipping
Source
rotate(angle : Float64, x : Float64, y : Float64)
Source
rotate(angle : Float64)
Source
save
Source
save_and_restore
Source
scale(x : Float64, y : Float64)
Source
set_hint(hint_type : ContextHint, value : UInt32)
Source
set_stroke_cap(position : StrokeCapPosition, stroke_cap : StrokeCap)
Source
skew(x : Float64, y : Float64)
Source
stroke_alpha
Source
stroke_alpha=(alpha : Float64)
Source
stroke_arc(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start : Float64, sweep : Float64, style : Style | Nil = nil)
Source
stroke_arc(arc : Arc, style : Style | Nil = nil)
Source
stroke_box(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64, style : Style | Nil = nil)
Source
stroke_box(box : Box | BoxI, style : Style | Nil = nil)
Source
stroke_cap(position : StrokeCapPosition) : StrokeCap
Source
stroke_caps=(stroke_cap : StrokeCap)
Source
stroke_chord(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start : Float64, sweep : Float64, style : Style | Nil = nil)
Source
stroke_chord(chord : Chord, style : Style | Nil = nil)
Source
stroke_circle(cx : Float64, cy : Float64, r : Float64, style : Style | Nil = nil)
Source
stroke_circle(circle : Circle, style : Style | Nil = nil)
Source
stroke_ellipse(cx : Float64, cy : Float64, rx : Float64, ry : Float64, style : Style | Nil = nil)
Source
stroke_ellipse(ellipse : Ellipse, style : Style | Nil = nil)
Source
stroke_end_cap
Source
stroke_end_cap=(stroke_cap : StrokeCap)
Source
stroke_geometry(geometry : Geometry::Core, style : Style | Nil = nil)
Source
stroke_glyph_run(origin : Tuple(Number, Number), font : Font, glyph_run : GlyphRun, style : Style | Nil = nil)
Source
stroke_glyph_run(origin : Point | PointI, font : Font, glyph_run : GlyphRun, style : Style | Nil = nil)
Source
stroke_join
Source
stroke_join=(stroke_join : StrokeJoin)
Source
stroke_line(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64, style : Style | Nil = nil)
Source
stroke_line(line : Line, style : Style | Nil = nil)
Source
stroke_miter_limit
Source
stroke_miter_limit=(miter_limit : Float64)
Source
stroke_options
Source
stroke_options=(options : StrokeOptions)
Source
stroke_path(path : Path, style : Style | Nil = nil)
Source
stroke_path(origin : Tuple(Float64, Float64), path : Path, style : Style | Nil = nil)
Source
stroke_path(origin : Point, path : Path, style : Style | Nil = nil)
Source
stroke_pie(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start : Float64, sweep : Float64, style : Style | Nil = nil)
Source
stroke_pie(pie : Pie, style : Style | Nil = nil)
Source
stroke_rect(x : Float64, y : Float64, w : Float64, h : Float64, style : Style | Nil = nil)
Source
stroke_rect(rect : Rect | RectI, style : Style | Nil = nil)
Source
stroke_round_rect(x : Float64, y : Float64, w : Float64, h : Float64, rx : Float64, ry : Float64, style : Style | Nil = nil)
Source
stroke_round_rect(x : Float64, y : Float64, w : Float64, h : Float64, r : Float64, style : Style | Nil = nil)
Source
stroke_round_rect(round_rect : RoundRect, style : Style | Nil = nil)
Source
stroke_start_cap
Source
stroke_start_cap=(stroke_cap : StrokeCap)
Source
stroke_style
Source
stroke_style=(style : Style | RGBA)
Source
stroke_text(origin : Tuple(Number, Number), font : Font, text : String, style : Style | Nil = nil)
Source
stroke_text(origin : Point | PointI, font : Font, text : String, style : Style | Nil = nil)
Source
stroke_transform_order
Source
stroke_transform_order=(transform_order : StrokeTransformOrder)
Source
stroke_triangle(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, style : Style | Nil = nil)
Source
stroke_triangle(triangle : Triangle, style : Style | Nil = nil)
Source
stroke_width
Source
stroke_width=(width : Float64)
Source
swap_styles(mode : ContextStyleSwapMode = ContextStyleSwapMode::Styles)
Source
swap_styles_with_alpha
Source
target_size
Source
transform(matrix : Matrix2D)
Source
transform=(matrix : Matrix2D)
Source
transformed_fill_style
Source
transformed_stroke_style
Source
translate(x : Float64, y : Float64)
Source
type
Source
user_to_meta
Source
user_transform
Source