Sha256: 78f3964412aef9f4029a218dea8d4d2b5dae0c8c097fb5b68e5ef20685bd4012

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

module GDAL
  class ColorInterpretation
    # @param gdal_color_interp [FFI::GDAL::ColorInterp]
    # @return [String]
    def self.name(gdal_color_interp)
      FFI::GDAL::GDAL.GDALGetColorInterpretationName(gdal_color_interp)
    end

    # @param name [String]
    # @return [FFI::GDAL::ColorInterp]
    def self.by_name(name)
      FFI::GDAL::GDAL.GDALGetColorInterpretationByName(name)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 lib/gdal/color_interpretation.rb
ffi-gdal-1.0.0.beta6 lib/gdal/color_interpretation.rb