Class: Exif::Tag::TIFF::PhotometricInterpretation

Inherits:
Base
  • Object
show all
Defined in:
lib/exifparser/tag.rb

Overview

0x0106 - PhotometricInterpretation

Instance Attribute Summary

Attributes inherited from Base

#IFD, #count, #data, #dataPos, #pos, #tagID

Instance Method Summary collapse

Methods inherited from Base

#formatExposureTime, #formatFNumber, #formatFocalLength, #formatLatLon, #initialize, #inspect, #name, #processData, #value

Constructor Details

This class inherits a constructor from Exif::Tag::Base

Instance Method Details

#to_sObject



428
429
430
431
432
433
434
435
436
437
# File 'lib/exifparser/tag.rb', line 428

def to_s
  case @formatted
  when 2
    'RGB'
  when 6
    'YCbCr'
  else
    'Unknown'
  end
end