Module: ZPNG::ScanLine::Mixins::RGB24
- Defined in:
- lib/zpng/scan_line/mixins.rb
Overview
RGB 8 bits per sample = 24bpp
Instance Method Summary collapse
Instance Method Details
#[](x) ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/zpng/scan_line/mixins.rb', line 31 def [] x t = x*3 # color_class is for (limited) BMP support image.color_class.new( decoded_bytes.getbyte(t), decoded_bytes.getbyte(t+1), decoded_bytes.getbyte(t+2) ) end |