class Exif::Tag::Exif::SubjectArea

0x9214 - SubjectArea

Public Instance Methods

processData() click to toggle source
# File lib/exifparser/tag.rb, line 1165
def processData
  @formatted = []
  partition_data(@count) do |data|
    @formatted.push _formatData(data)
  end
end
to_s() click to toggle source
# File lib/exifparser/tag.rb, line 1172
def to_s
  case @count
  when 2
    "Coordinate - [%d, %d]"%[*@formatted]
  when 3
    "Circle - Center: [%d, %d], Diameter: %d"%[*@formatted]
  when 4
    "Rectanglar - Center: [%d, %d], Width: %d, Height: %d"%[*@formatted]
  else
    'Unknown'
  end
end