Sha256: daf8934a6d8c11296b0f9df976c81f2f73259f6d846d03ff753772c26a01e8d2

Contents?: true

Size: 350 Bytes

Versions: 31

Compression:

Stored size: 350 Bytes

Contents

class PSD
  class Layer
    module Mask
      attr_reader :mask
      
      private

      def parse_mask_data
        @mask_begin = @file.tell
        @mask = PSD::Mask.read(@file)
        @mask_end = @file.tell
      end

      def export_mask_data(outfile)
        outfile.write @file.read(@mask_end - @mask_begin + 4)
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
psd-3.9.0 lib/psd/layer/mask.rb
psd-3.8.0 lib/psd/layer/mask.rb
psd-3.7.0 lib/psd/layer/mask.rb
psd-3.6.0 lib/psd/layer/mask.rb
bench9000-0.1 vendor/psd.rb/lib/psd/layer/mask.rb
psd-3.5.0 lib/psd/layer/mask.rb
psd-3.4.0 lib/psd/layer/mask.rb
psd-3.3.3 lib/psd/layer/mask.rb
psd-3.3.2 lib/psd/layer/mask.rb
psd-3.3.1 lib/psd/layer/mask.rb
psd-3.2.4 lib/psd/layer/mask.rb
psd-3.2.3 lib/psd/layer/mask.rb
psd-3.2.2 lib/psd/layer/mask.rb
psd-3.2.1 lib/psd/layer/mask.rb
psd-3.2.0 lib/psd/layer/mask.rb
psd-3.1.5 lib/psd/layer/mask.rb
psd-3.1.4 lib/psd/layer/mask.rb
psd-3.1.3 lib/psd/layer/mask.rb
psd-3.1.2 lib/psd/layer/mask.rb
psd-2.1.2 lib/psd/layer/mask.rb