Sha256: d197119953ec9d1489dd2fd38d41232b8a849b123d47d21ce91dfb24ff19c1da
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
module Gatling class ImageWrangler def self.get_element_position element element = element.native position = Hash.new{} position[:x] = element.location.x position[:y] = element.location.y position[:width] = element.size.width position[:height] = element.size.height position end def self.crop_element image, element_to_crop position = get_element_position(element_to_crop) @cropped_element = image.crop(position[:x], position[:y], position[:width], position[:height]) end def self.exclude image, element_to_exclude end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gatling-1.0.7 | lib/gatling/image_wrangler.rb |