Method: PSD::VectorMask#parse
- Defined in:
- lib/psd/layer_info/vector_mask.rb
#parse ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/psd/layer_info/vector_mask.rb', line 9 def parse version = @file.read_int tag = @file.read_int @invert = tag & 0x01 @not_link = (tag & (0x01 << 1)) > 0 @disable = (tag & (0x01 << 2)) > 0 num_records = (@length - 8) / 26 @paths = [] num_records.times do @paths << PathRecord.new(@file) end end |