class CooCoo::Transformers::Image::Base

Attributes

height[R]
width[R]

Public Class Methods

new(enum, width, height) click to toggle source
Calls superclass method CooCoo::Transformers::Proxy::new
# File lib/coo-coo/transformer.rb, line 91
def initialize(enum, width, height)
  @width = width
  @height = height
  super(enum)
end

Public Instance Methods

rotate(radians, ox = 0, oy = 0) click to toggle source
# File lib/coo-coo/transformer.rb, line 103
def rotate(radians, ox = 0, oy = 0)
  Rotation.new(self, width, height, ox, oy, radians)
end
scale(x, y) click to toggle source
# File lib/coo-coo/transformer.rb, line 107
def scale(x, y)
  Scaler.new(self, width, height, x, y || x)
end
translate(x, y) click to toggle source
# File lib/coo-coo/transformer.rb, line 99
def translate(x, y)
  Translation.new(self, width, height, x, y)
end