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

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.
 
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)
 

Properties

unsafe MR.Std.Const_Vector_MRColor pixels [get]
 
unsafe ref readonly MR.Vector2i resolution [get]
 
unsafe MR.Color this[in MR.Vector2i p] [get]
 Generated from method MR.Image.operator[].
 
- Properties inherited from MR.Misc.Object< Const_Image >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Additional Inherited Members

- Protected Attributes inherited from MR.Misc.Object< Const_Image >
bool _IsOwningVal
 

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.


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