MeshLib C# Docs
Loading...
Searching...
No Matches

struct to hold Image data Generated from class MR.Image. Derived classes: Direct: (non-virtual) MR.MeshTexture This is the const half of the class. More...

Inheritance diagram for MR.Const_Image:

Classes

struct  _Underlying

Public Member Functions

virtual void Dispose ()
unsafe Const_Image ()
 Constructs an empty (default-constructed) instance.
unsafe Const_Image (MR.Std._ByValue_Vector_MRColor pixels, MR.Vector2i resolution)
 Constructs MR.Image elementwise.
unsafe Const_Image (MR._ByValue_Image _other)
 Generated from constructor MR.Image.Image.
 Const_Image (Const_Image _other)
 Generated from constructor MR.Image.Image.
 Const_Image (Image _other)
 Generated from constructor MR.Image.Image.
unsafe ulong heapBytes ()
 returns the amount of memory this object occupies on heap Generated from method MR.Image.heapBytes.
unsafe MR.Color sampleDiscrete (in MR.Vector2f pos)
 Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns the color of the closest pixel Generated from method MR.Image.sampleDiscrete.
unsafe MR.Color sampleBilinear (in MR.Vector2f pos)
 Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns bilinear interpolated color at it Generated from method MR.Image.sampleBilinear.
unsafe MR.Color sample (MR.FilterType filter, in MR.Vector2f pos)
 Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns sampled color at it according to given filter Generated from method MR.Image.sample.

Protected Member Functions

virtual unsafe void Dispose (bool disposing)

Protected Attributes

unsafe MR.Vector2i__ref_storage_resolution

Properties

unsafe MR.Std.Const_Vector_MRColor pixels [get, protected set]
unsafe ref readonly MR.Vector2i resolution [get]
unsafe MR.Color this[in MR.Vector2i p] [get]
 Generated from method MR::Image::operator[].

Detailed Description

struct to hold Image data Generated from class MR.Image. Derived classes: Direct: (non-virtual) MR.MeshTexture This is the const half of the class.

Constructor & Destructor Documentation

◆ Const_Image() [1/5]

unsafe MR.Const_Image.Const_Image ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_Image() [2/5]

unsafe MR.Const_Image.Const_Image ( MR.Std._ByValue_Vector_MRColor pixels,
MR.Vector2i resolution )
inline

Constructs MR.Image elementwise.

◆ Const_Image() [3/5]

unsafe MR.Const_Image.Const_Image ( MR._ByValue_Image _other)
inline

Generated from constructor MR.Image.Image.

◆ Const_Image() [4/5]

MR.Const_Image.Const_Image ( Const_Image _other)
inline

Generated from constructor MR.Image.Image.

◆ Const_Image() [5/5]

MR.Const_Image.Const_Image ( Image _other)
inline

Generated from constructor MR.Image.Image.

Member Function Documentation

◆ Dispose() [1/2]

virtual void MR.Const_Image.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.Const_Image.Dispose ( bool disposing)
inlineprotectedvirtual

◆ heapBytes()

unsafe ulong MR.Const_Image.heapBytes ( )
inline

returns the amount of memory this object occupies on heap Generated from method MR.Image.heapBytes.

◆ sample()

unsafe MR.Color MR.Const_Image.sample ( MR.FilterType filter,
in MR.Vector2f pos )
inline

Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns sampled color at it according to given filter Generated from method MR.Image.sample.

◆ sampleBilinear()

unsafe MR.Color MR.Const_Image.sampleBilinear ( in MR.Vector2f pos)
inline

Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns bilinear interpolated color at it Generated from method MR.Image.sampleBilinear.

◆ sampleDiscrete()

unsafe MR.Color MR.Const_Image.sampleDiscrete ( in MR.Vector2f pos)
inline

Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns the color of the closest pixel Generated from method MR.Image.sampleDiscrete.

Member Data Documentation

◆ __ref_storage_resolution

unsafe MR.Vector2i* MR.Const_Image.__ref_storage_resolution
protected

Property Documentation

◆ pixels

unsafe MR.Std.Const_Vector_MRColor MR.Const_Image.pixels
getprotected set

◆ resolution

unsafe ref readonly MR.Vector2i MR.Const_Image.resolution
get

◆ this[in MR.Vector2i p]

unsafe MR.Color MR.Const_Image.this[in MR.Vector2i p]
get

Generated from method MR::Image::operator[].


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