Class Rubyshop::LayerSet
In: lib/rubyshop/layerset.rb
Parent: Object

Methods

Attributes

bounding_height  [R] 
bounding_width  [R] 
layers  [RW] 
max_x  [R] 
max_y  [R] 
min_x  [R] 
min_y  [R] 
name  [R] 

Public Class methods

Public Instance methods

Add a stray Layer to the LayerSet or Canvas.

Calculate the bounding box dimensions of all Layers and LayerMasks in the LayerSet or Canvas.

Composite an array of Layers and LayerSets onto a source image.

Draws a bounding box surrounding all Layers in the LayerSet or Canvas.

Flattens a LayerSet or Canvas to one Layer.

Determine if the LayerSet or Canvas contains any Layers.

Return an array of LayerMasks contained in this LayerSet

Offsets the entire LayerSet on the Canvas to a new x, y position while maintaining the proportional distances between all Layers and LayerMasks in the LayerSet.

Returns a render of LayerSet or Canvas.

Rotate all Layers and LayerMasks in the LayerSet around the LayerSet bounding box center point.

Saves render of LayerSet or Canvas to disk.

[Validate]