Sha256: 3be47ab6f6b87ef12870ea677f7096bf7013f51b37edf9e91862f4af1e2faf1c
Contents?: true
Size: 610 Bytes
Versions: 6
Compression:
Stored size: 610 Bytes
Contents
# frozen_string_literal: true module GDAL class ColorInterpretation # @param gdal_color_interp [FFI::GDAL::GDAL::ColorInterp] # @return [String] def self.name(gdal_color_interp) # The returned strings are static strings and should not be modified or freed by the application. name, ptr = FFI::GDAL::GDAL.GDALGetColorInterpretationName(gdal_color_interp) ptr.autorelease = false name end # @param name [String] # @return [FFI::GDAL::GDAL::ColorInterp] def self.by_name(name) FFI::GDAL::GDAL.GDALGetColorInterpretationByName(name) end end end
Version data entries
6 entries across 6 versions & 1 rubygems