Sha256: 31eef6f04760ea27eb6ae549b4861591d3c947fd27fe7c4e3bbfe8350f66878c
Contents?: true
Size: 436 Bytes
Versions: 5
Compression:
Stored size: 436 Bytes
Contents
require 'psd/layer_info' class PSD class Exposure < LayerInfo def self.should_parse?(key) key == 'expA' end attr_reader :exposure, :offset, :gamma def parse @file.seek 2, IO::SEEK_CUR # Why this shit is big endian is beyond me. Thanks Adobe. @exposure = @file.read(4).unpack('g')[0] @offset = @file.read(4).unpack('g')[0] @gamma = @file.read(4).unpack('g')[0] end end end
Version data entries
5 entries across 5 versions & 1 rubygems