Module: PSD::Layer::ChannelImage

Included in:
PSD::Layer
Defined in:
lib/psd/layer/channel_image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#imageObject (readonly)

Returns the value of attribute image.



4
5
6
# File 'lib/psd/layer/channel_image.rb', line 4

def image
  @image
end

Instance Method Details

#parse_channel_image(header) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/psd/layer/channel_image.rb', line 6

def parse_channel_image(header)
  image = PSD::ChannelImage.new(@file, header, self)
  @image = LazyExecute.new(image, @file)
    .now(:skip)
    .later(:parse)
    .ignore(:width, :height)
end