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 non-const half of the class. More...

Inheritance diagram for MR.Image:

Public Member Functions

unsafe Image ()
 Constructs an empty (default-constructed) instance.
unsafe Image (MR.Std._ByValue_Vector_MRColor pixels, MR.Vector2i resolution)
 Constructs MR.Image elementwise.
unsafe Image (MR._ByValue_Image _other)
 Generated from constructor MR.Image.Image.
 Image (Const_Image _other)
 Generated from constructor MR.Image.Image.
 Image (Image _other)
 Generated from constructor MR.Image.Image.
unsafe MR.Image assign (MR._ByValue_Image _other)
 Generated from method MR::Image::operator=.
Public Member Functions inherited from MR.Const_Image
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.

Properties

new unsafe MR.Std.Vector_MRColor pixels [get, protected set]
new unsafe ref MR.Vector2i resolution [get]
unsafe new ref MR.Color this[in MR.Vector2i p] [get]
 fetches some texture element specified by integer coordinates Generated from method MR::Image::operator[].
Properties inherited from MR.Const_Image
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[].

Additional Inherited Members

Protected Member Functions inherited from MR.Const_Image
virtual unsafe void Dispose (bool disposing)
Protected Attributes inherited from MR.Const_Image
unsafe MR.Vector2i__ref_storage_resolution

Detailed Description

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

Constructor & Destructor Documentation

◆ Image() [1/5]

unsafe MR.Image.Image ( )
inline

Constructs an empty (default-constructed) instance.

◆ Image() [2/5]

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

Constructs MR.Image elementwise.

◆ Image() [3/5]

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

Generated from constructor MR.Image.Image.

◆ Image() [4/5]

MR.Image.Image ( Const_Image _other)
inline

Generated from constructor MR.Image.Image.

◆ Image() [5/5]

MR.Image.Image ( Image _other)
inline

Generated from constructor MR.Image.Image.

Member Function Documentation

◆ assign()

unsafe MR.Image MR.Image.assign ( MR._ByValue_Image _other)
inline

Generated from method MR::Image::operator=.

Property Documentation

◆ pixels

new unsafe MR.Std.Vector_MRColor MR.Image.pixels
getprotected set

◆ resolution

new unsafe ref MR.Vector2i MR.Image.resolution
get

◆ this[in MR.Vector2i p]

unsafe new ref MR.Color MR.Image.this[in MR.Vector2i p]
get

fetches some texture element specified by integer coordinates Generated from method MR::Image::operator[].


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