Sha256: 89a21cc3c2d9c8fbf7a344c8f112485df47e40c589af5f13adb875a8f30272a6
Contents?: true
Size: 956 Bytes
Versions: 87
Compression:
Stored size: 956 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
87 entries across 87 versions & 17 rubygems