Sha256: 6e0d3920e4608d5048432bd448e026777d9ea9e0c5dc79048c6992e6e81d0642
Contents?: true
Size: 921 Bytes
Versions: 68
Compression:
Stored size: 921 Bytes
Contents
module RedArtisan module CoreImage module Filters module Perspective def perspective(top_left, top_right, bottom_left, bottom_right) create_core_image_context(@original.extent.size.width, @original.extent.size.height) @original.perspective_transform :inputTopLeft => top_left, :inputTopRight => top_right, :inputBottomLeft => bottom_left, :inputBottomRight => bottom_right do |transformed| @target = transformed end end def perspective_tiled(top_left, top_right, bottom_left, bottom_right) create_core_image_context(@original.extent.size.width, @original.extent.size.height) @original.perspective_tile :inputTopLeft => top_left, :inputTopRight => top_right, :inputBottomLeft => bottom_left, :inputBottomRight => bottom_right do |tiled| @target = tiled end end end end end end
Version data entries
68 entries across 68 versions & 2 rubygems