Class: GD2::Canvas

Class | GD2::Canvas
In: | lib/gd2/canvas.rb
Parent: | Object

### Methods

affine_transform arc brush= cartesian circle color= dont_blend= ellipse fill fill_to line line_to location move move_to new point polygon rectangle rotate scale style= text text_circle thickness= tile= translate wedge

### Classes and Modules

Class GD2::Canvas::Arc
Class GD2::Canvas::Ellipse
Class GD2::Canvas::FilledEllipse
Class GD2::Canvas::FilledPolygon
Class GD2::Canvas::FilledRectangle
Class GD2::Canvas::FilledWedge
Class GD2::Canvas::Line
Class GD2::Canvas::NoColorSelectedError
Class GD2::Canvas::NoFontSelectedError
Class GD2::Canvas::OpenPolygon
Class GD2::Canvas::Point
Class GD2::Canvas::Polygon
Class GD2::Canvas::Rectangle
Class GD2::Canvas::Text
Class GD2::Canvas::TextCircle
Class GD2::Canvas::Wedge

### Constants

STYLED | = | -2 |  | Special colors
BRUSHED | = | -3
STYLED_BRUSHED | = | -4
TILED | = | -5
TRANSPARENT | = | -6
ANTI_ALIASED | = | -7

### External Aliases

anti_aliasing | -> | anti_aliasing?

### Attributes

anti_aliasing | [RW] |
brush | [R] |
color | [R] |
dont_blend | [R] |
font | [RW] |
style | [R] |
thickness | [R] |
tile | [R] |
transformation_matrix | [R] |

### Public Class methods

new(image)

### Public Instance methods

affine_transform(a, b, c, d, tx, ty) {|| ...}
arc(cx, cy, width, height, range)
brush=(image)
cartesian(&block)
circle(cx, cy, diameter, filled = false)
color=(color)
dont_blend=(color)
ellipse(cx, cy, width, height, filled = false)
fill()
fill_to(border)
line(x1, y1, x2, y2)
line_to(x, y)
location()
move(x, y)
move_to(x, y)
point(x, y)
polygon(points, filled = false, open = false)
rectangle(x1, y1, x2, y2, filled = false)
rotate(angle, &block)
scale(sx, sy = sx, &block)
style=(ary)
text(string, angle = 0.0)
text_circle(top, bottom, radius, text_radius, fill_portion)
thickness=(thickness)
tile=(image)
translate(tx, ty, &block)
wedge(cx, cy, width, height, range, filled = false, chord = false)

[Validate]