Sha256: b8e94ea49fa5b6ef5cc62bd5c47545b3abeab4a7ebd0e091b9fe6dffacbee490

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 KB

Contents

require "psd"
require "oily_png"

module PSDNative
  def self.included(base)
    base::Image.send(:include, PSDNative::ImageMode::RGB)
    base::Image.send(:include, PSDNative::ImageMode::CMYK)
    base::Image.send(:include, PSDNative::ImageMode::Greyscale)
    base::Image.send(:include, PSDNative::ImageFormat::RLE)
    base::ChannelImage.send(:include, PSDNative::ImageFormat::LayerRAW)
    base::Color.send(:include, PSDNative::Color)
    base::Util.extend PSDNative::Util

    base::Renderer::ClippingMask.class_eval do
      remove_method :apply!
    end
    base::Renderer::ClippingMask.send(:include, PSDNative::Renderer::ClippingMask)

    base::Renderer::Mask.class_eval do
      remove_method :apply!
    end
    base::Renderer::Mask.send(:include, PSDNative::Renderer::Mask)

    base::Renderer::Blender.class_eval do
      remove_method :compose!
    end
    base::Renderer::Blender.send(:include, PSDNative::Renderer::Blender)
  end
end

require "psd_native/version"
require "psd_native/psd_native"
require "psd_native/compose"

PSD.send :include, PSDNative

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
bench9000-0.1 vendor/psd_native/lib/psd_native.rb
psd_native-1.1.3 lib/psd_native.rb
psd_native-1.1.2 lib/psd_native.rb
psd_native-1.1.1 lib/psd_native.rb
psd_native-1.1.0 lib/psd_native.rb