Method: PSD::Layer::Exporting#export
- Defined in:
- lib/psd/layer/exporting.rb
#export(outfile) ⇒ Object
Export the layer to file. May or may not work.
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/psd/layer/exporting.rb', line 5 def export(outfile) export_position_and_channels(outfile) @blend_mode.write(outfile) @file.seek(@blend_mode.num_bytes, IO::SEEK_CUR) export_mask_data(outfile) export_blending_ranges(outfile) export_legacy_layer_name(outfile) export_extra_data(outfile) outfile.write @file.read(end_of_section - @file.tell) end |