Method: PSD::PathRecord#write

Defined in:
lib/psd/path_record.rb

#write(outfile) ⇒ Object

Writes out the path to file.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/psd/path_record.rb', line 29

def write(outfile)
  outfile.write_short @record_type
  case @record_type
  when 0 then write_path_record(outfile)
  when 3 then write_path_record(outfile)
  when 1 then write_bezier_point(outfile)
  when 2 then write_bezier_point(outfile)
  when 4 then write_bezier_point(outfile)
  when 5 then write_bezier_point(outfile)
  when 7 then write_clipboard_record(outfile)
  when 8 then write_initial_fill(outfile)
  else outfile.seek(24, IO::SEEK_CUR)
  end
end