Sha256: 8b91b96755777ca4493d26e2fe36346b32dad567d6f54c5c84183d11dab4b6d3

Contents?: true

Size: 259 Bytes

Versions: 5

Compression:

Stored size: 259 Bytes

Contents

require 'psd/layer_info'

class PSD
  class Threshold < LayerInfo
    def self.should_parse?(key)
      key == 'thrs'
    end

    attr_reader :level

    def parse
      @level = @file.read_short
      @file.seek 2, IO::SEEK_CUR # Padding?
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
psd-3.9.0 lib/psd/layer/info/threshold.rb
psd-3.8.0 lib/psd/layer/info/threshold.rb
psd-3.7.0 lib/psd/layer/info/threshold.rb
psd-3.6.0 lib/psd/layer/info/threshold.rb
psd-3.5.0 lib/psd/layer/info/threshold.rb