Sha256: 8f1b93cf46ff9dcdb65227f5a85042d85845b8438cb676e3b1e4549e8e7ba976

Contents?: true

Size: 405 Bytes

Versions: 2

Compression:

Stored size: 405 Bytes

Contents

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta3 lib/gdal/color_interpretation.rb
ffi-gdal-1.0.0.beta1 lib/gdal/color_interpretation.rb