Blend2D::Rendering::Context
Inherits Blend2D::Core < Reference < Object
Constructors
new(image : Image)
SourceInstance methods
apply_transform_op(op : TransformOp, data : Array(Float64))
Sourcebegin(image : Image)
Sourceblit_image(origin : Point | PointI, img : Image, img_area : RectI | Nil = nil)
Sourceblit_scaled_image(rect : Rect | RectI, img : Image, img_area : RectI | Nil = nil)
Sourceclear_all
Sourceclear_rect(x : Float64, y : Float64, w : Float64, h : Float64)
Sourceclear_rect(rect : Rect | RectI)
Sourceclip_to_rect(x : Float64, y : Float64, w : Float64, h : Float64)
Sourceclip_to_rect(rect : Rect | RectI)
Sourcecomp_op
Sourcecomp_op=(comp_op : CompOp)
Sourcedisable_fill_style
Sourcedisable_stroke_style
Sourceend
Sourcefill_all(style : Style | Nil = nil)
Sourcefill_alpha
Sourcefill_alpha=(alpha : Float64)
Sourcefill_arc(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start : Float64, sweep : Float64, style : Style | Nil = nil)
Sourcefill_arc(arc : Arc, style : Style | Nil = nil)
Sourcefill_box(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64, style : Style | Nil = nil)
Sourcefill_box(box : Box | BoxI, style : Style | Nil = nil)
Sourcefill_chord(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start : Float64, sweep : Float64, style : Style | Nil = nil)
Sourcefill_chord(chord : Chord, style : Style | Nil = nil)
Sourcefill_circle(cx : Float64, cy : Float64, r : Float64, style : Style | Nil = nil)
Sourcefill_circle(circle : Circle, style : Style | Nil = nil)
Sourcefill_ellipse(cx : Float64, cy : Float64, rx : Float64, ry : Float64, style : Style | Nil = nil)
Sourcefill_ellipse(ellipse : Ellipse, style : Style | Nil = nil)
Sourcefill_geometry(geometry : Geometry::Core, style : Style | Nil = nil)
Sourcefill_glyph_run(origin : Tuple(Number, Number), font : Font, glyph_run : GlyphRun, style : Style | Nil = nil)
Sourcefill_glyph_run(origin : Point | PointI, font : Font, glyph_run : GlyphRun, style : Style | Nil = nil)
Sourcefill_line(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64, style : Style | Nil = nil)
Sourcefill_line(line : Line, style : Style | Nil = nil)
Sourcefill_mask(origin : Point | PointI, mask : Image, style : Style | Nil = nil)
Sourcefill_mask(origin : Point | PointI, mask : Image, mask_area : RectI, style : Style | Nil = nil)
Sourcefill_path(path : Path, style : Style | Nil = nil)
Sourcefill_path(origin : Tuple(Float64, Float64), path : Path, style : Style | Nil = nil)
Sourcefill_path(origin : Point, path : Path, style : Style | Nil = nil)
Sourcefill_pie(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start : Float64, sweep : Float64, style : Style | Nil = nil)
Sourcefill_pie(pie : Pie, style : Style | Nil = nil)
Sourcefill_rect(x : Float64, y : Float64, w : Float64, h : Float64, style : Style | Nil = nil)
Sourcefill_rect(rect : Rect | RectI, style : Style | Nil = nil)
Sourcefill_round_rect(x : Float64, y : Float64, w : Float64, h : Float64, rx : Float64, ry : Float64, style : Style | Nil = nil)
Sourcefill_round_rect(x : Float64, y : Float64, w : Float64, h : Float64, r : Float64, style : Style | Nil = nil)
Sourcefill_round_rect(round_rect : RoundRect, style : Style | Nil = nil)
Sourcefill_rule
Sourcefill_rule=(fill_rule : FillRule)
Sourcefill_style
Sourcefill_style=(style : Style)
Sourcefill_text(origin : Tuple(Number, Number), font : Font, text : String, style : Style | Nil = nil)
Sourcefill_text(origin : Point | PointI, font : Font, text : String, style : Style | Nil = nil)
Sourcefill_triangle(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, style : Style | Nil = nil)
Sourcefill_triangle(triangle : Triangle, style : Style | Nil = nil)
Sourcefinal_transform
Sourcefinalize
Sourceflatten_mode=(mode : FlattenMode)
Sourceflatten_tolerance=(tolerance : Float64)
Sourceglobal_alpha
Sourceglobal_alpha=(alpha : Float64)
Sourcegradient_quality
Sourcegradient_quality=(gradient_quality : GradientQuality)
Sourcehint(hint_type : ContextHint) : UInt32
Sourcehints
Sourcehints=(hints : ContextHints)
Sourcemeta_transform
Sourcepattern_quality
Sourcepattern_quality=(pattern_quality : PatternQuality)
Sourcepost_rotate(angle : Float64, x : Float64, y : Float64)
Sourcepost_rotate(angle : Float64)
Sourcepost_scale(x : Float64, y : Float64)
Sourcepost_skew(x : Float64, y : Float64)
Sourcepost_transform(matrix : Matrix2D)
Sourcepost_translate(x : Float64, y : Float64)
Sourcerendering_quality
Sourcerendering_quality=(rendering_quality : RenderingQuality)
Sourcereset_transform
Sourcerestore(cookie : ContextCookie)
Sourcerestore
Sourcerestore_clipping
Sourcerotate(angle : Float64, x : Float64, y : Float64)
Sourcerotate(angle : Float64)
Sourcesave
Sourcesave_and_restore
Sourcescale(x : Float64, y : Float64)
Sourceset_hint(hint_type : ContextHint, value : UInt32)
Sourceset_stroke_cap(position : StrokeCapPosition, stroke_cap : StrokeCap)
Sourceskew(x : Float64, y : Float64)
Sourcestroke_alpha
Sourcestroke_alpha=(alpha : Float64)
Sourcestroke_arc(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start : Float64, sweep : Float64, style : Style | Nil = nil)
Sourcestroke_arc(arc : Arc, style : Style | Nil = nil)
Sourcestroke_box(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64, style : Style | Nil = nil)
Sourcestroke_box(box : Box | BoxI, style : Style | Nil = nil)
Sourcestroke_cap(position : StrokeCapPosition) : StrokeCap
Sourcestroke_caps=(stroke_cap : StrokeCap)
Sourcestroke_chord(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start : Float64, sweep : Float64, style : Style | Nil = nil)
Sourcestroke_chord(chord : Chord, style : Style | Nil = nil)
Sourcestroke_circle(cx : Float64, cy : Float64, r : Float64, style : Style | Nil = nil)
Sourcestroke_circle(circle : Circle, style : Style | Nil = nil)
Sourcestroke_ellipse(cx : Float64, cy : Float64, rx : Float64, ry : Float64, style : Style | Nil = nil)
Sourcestroke_ellipse(ellipse : Ellipse, style : Style | Nil = nil)
Sourcestroke_end_cap
Sourcestroke_end_cap=(stroke_cap : StrokeCap)
Sourcestroke_geometry(geometry : Geometry::Core, style : Style | Nil = nil)
Sourcestroke_glyph_run(origin : Tuple(Number, Number), font : Font, glyph_run : GlyphRun, style : Style | Nil = nil)
Sourcestroke_glyph_run(origin : Point | PointI, font : Font, glyph_run : GlyphRun, style : Style | Nil = nil)
Sourcestroke_join
Sourcestroke_join=(stroke_join : StrokeJoin)
Sourcestroke_line(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64, style : Style | Nil = nil)
Sourcestroke_line(line : Line, style : Style | Nil = nil)
Sourcestroke_miter_limit
Sourcestroke_miter_limit=(miter_limit : Float64)
Sourcestroke_options
Sourcestroke_options=(options : StrokeOptions)
Sourcestroke_path(path : Path, style : Style | Nil = nil)
Sourcestroke_path(origin : Tuple(Float64, Float64), path : Path, style : Style | Nil = nil)
Sourcestroke_path(origin : Point, path : Path, style : Style | Nil = nil)
Sourcestroke_pie(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start : Float64, sweep : Float64, style : Style | Nil = nil)
Sourcestroke_pie(pie : Pie, style : Style | Nil = nil)
Sourcestroke_rect(x : Float64, y : Float64, w : Float64, h : Float64, style : Style | Nil = nil)
Sourcestroke_rect(rect : Rect | RectI, style : Style | Nil = nil)
Sourcestroke_round_rect(x : Float64, y : Float64, w : Float64, h : Float64, rx : Float64, ry : Float64, style : Style | Nil = nil)
Sourcestroke_round_rect(x : Float64, y : Float64, w : Float64, h : Float64, r : Float64, style : Style | Nil = nil)
Sourcestroke_round_rect(round_rect : RoundRect, style : Style | Nil = nil)
Sourcestroke_start_cap
Sourcestroke_start_cap=(stroke_cap : StrokeCap)
Sourcestroke_style
Sourcestroke_style=(style : Style | RGBA)
Sourcestroke_text(origin : Tuple(Number, Number), font : Font, text : String, style : Style | Nil = nil)
Sourcestroke_text(origin : Point | PointI, font : Font, text : String, style : Style | Nil = nil)
Sourcestroke_transform_order
Sourcestroke_transform_order=(transform_order : StrokeTransformOrder)
Sourcestroke_triangle(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, style : Style | Nil = nil)
Sourcestroke_triangle(triangle : Triangle, style : Style | Nil = nil)
Sourcestroke_width
Sourcestroke_width=(width : Float64)
Sourceswap_styles(mode : ContextStyleSwapMode = ContextStyleSwapMode::Styles)
Sourceswap_styles_with_alpha
Sourcetarget_size
Sourcetransform(matrix : Matrix2D)
Sourcetransform=(matrix : Matrix2D)
Sourcetransformed_fill_style
Sourcetransformed_stroke_style
Sourcetranslate(x : Float64, y : Float64)
Sourcetype
Sourceuser_to_meta
Sourceuser_transform
Source