Sha256: 83ffaefc09c652260b6aaa17e65fcbeb4955557a5f774a76fc738da4c8fed921
Contents?: true
Size: 551 Bytes
Versions: 5
Compression:
Stored size: 551 Bytes
Contents
class PSD module ImageMode module Greyscale private def combine_greyscale_channel if channels == 2 (0...@num_pixels).step(pixel_step) do |i| grey = @channel_data[i] alpha = @channel_data[@channel_length + i] @pixel_data.push ChunkyPNG::Color.greyscale_alpha(grey, alpha) end else (0...@num_pixels).step(pixel_step) do |i| @pixel_data.push ChunkyPNG::Color.greyscale(@channel_data[i]) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems