Sha256: dc477aa2620f6c33037e298b855ca83ef40254544a345717f8961a96c3630a79

Contents?: true

Size: 440 Bytes

Versions: 9

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

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

9 entries across 9 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta16 lib/gdal/color_interpretation.rb
ffi-gdal-1.0.0.beta15 lib/gdal/color_interpretation.rb
ffi-gdal-1.0.0.beta14 lib/gdal/color_interpretation.rb
ffi-gdal-1.0.0.beta13 lib/gdal/color_interpretation.rb
ffi-gdal-1.0.0.beta12 lib/gdal/color_interpretation.rb
ffi-gdal-1.0.0.beta11 lib/gdal/color_interpretation.rb
ffi-gdal-1.0.0.beta10 lib/gdal/color_interpretation.rb
ffi-gdal-1.0.0.beta9 lib/gdal/color_interpretation.rb
ffi-gdal-1.0.0.beta8 lib/gdal/color_interpretation.rb