MeshLib C# Docs
Loading...
Searching...
No Matches
MR.RasterLoad Class Reference

Classes

class  _InOptConst_TiffLoadSettings
 This is used for optional parameters of class TiffLoadSettings with default arguments. This is only used const parameters. For non-const ones we have _InOptMut_TiffLoadSettings. Usage:
class  _InOptMut_TiffLoadSettings
 This is used for optional parameters of class TiffLoadSettings with default arguments. This is only used mutable parameters. For const ones we have _InOptConst_TiffLoadSettings. Usage:
class  Const_TiffLoadSettings
 TIFF-specific raster load parameters Generated from class MR.RasterLoad.TiffLoadSettings. This is the const half of the class. More...
class  TiffLoadSettings
 TIFF-specific raster load parameters Generated from class MR.RasterLoad.TiffLoadSettings. This is the non-const half of the class. More...

Static Public Member Functions

static unsafe MR.Raster fromTiff (string path, MR.Const_RasterLoadSettings? settings=null, MR.RasterLoad.Const_TiffLoadSettings? tiffSettings=null)
 loads the first image of a .tiff file as a raster with one layer:
static unsafe MR.RasterInfo infoFromTiff (string path)
 loads everything about the raster except its values from .tiff format Generated from function MR.RasterLoad.infoFromTiff.
static unsafe MR.Raster fromAnySupportedFormat (string path, MR.Const_RasterLoadSettings? settings=null)
 detects the format from file extension and loads a raster from it Generated from function MR.RasterLoad.fromAnySupportedFormat. Parameter settings defaults to {}.
static unsafe MR.RasterInfo infoFromAnySupportedFormat (string path)
 detects the format from file extension and loads everything about the raster except its samples Generated from function MR.RasterLoad.infoFromAnySupportedFormat.

Member Function Documentation

◆ fromAnySupportedFormat()

unsafe MR.Raster MR.RasterLoad.fromAnySupportedFormat ( string path,
MR.Const_RasterLoadSettings? settings = null )
inlinestatic

detects the format from file extension and loads a raster from it Generated from function MR.RasterLoad.fromAnySupportedFormat. Parameter settings defaults to {}.

◆ fromTiff()

unsafe MR.Raster MR.RasterLoad.fromTiff ( string path,
MR.Const_RasterLoadSettings? settings = null,
MR.RasterLoad.Const_TiffLoadSettings? tiffSettings = null )
inlinestatic

loads the first image of a .tiff file as a raster with one layer:

  • gray, palette and RGB images keep the stored samples of any type (gray values, color indices or color components) as channels;
  • libtiff decodes the other formats (gray with alpha, YCbCr, CMYK, less than 8 bits per sample, etc.) to four UInt8 channels of RGBA colors, which are not multiplied by alpha unless the file stores them so (associated alpha);
  • the formats that libtiff cannot decode are read as stored too if each pixel has one sample or three or more interleaved samples of 8 to 64 bits, otherwise loading fails;
  • the files compressed by the methods that libtiff does not support fail to load;
  • the rows keep the stored order whatever the Orientation tag says, also in the decoded formats Generated from function MR.RasterLoad.fromTiff. Parameter settings defaults to {}. Parameter tiffSettings defaults to {}.

◆ infoFromAnySupportedFormat()

unsafe MR.RasterInfo MR.RasterLoad.infoFromAnySupportedFormat ( string path)
inlinestatic

detects the format from file extension and loads everything about the raster except its samples Generated from function MR.RasterLoad.infoFromAnySupportedFormat.

◆ infoFromTiff()

unsafe MR.RasterInfo MR.RasterLoad.infoFromTiff ( string path)
inlinestatic

loads everything about the raster except its values from .tiff format Generated from function MR.RasterLoad.infoFromTiff.


The documentation for this class was generated from the following files: