MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.Image Class Reference
+ Inheritance diagram for mrmeshpy.Image:

Public Member Functions

Color __getitem__ (self, Vector2i p)
 
Color __getitem__ (self, Vector2i p)
 
None __init__ (self)
 
None __init__ (self, std_vector_Color pixels, Vector2i resolution)
 
None __setitem__ (self, Vector2i arg0, Color arg1)
 
int heapBytes (self)
 
Color sample (self, FilterType filter, Vector2f pos)
 
Color sampleBilinear (self, Vector2f pos)
 
Color sampleDiscrete (self, Vector2f pos)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
Image operator (*args, **kwargs)
 
Image operator (*args, **kwargs)
 

Static Protected Attributes

typing _offsetof_pixels = 0
 
typing _offsetof_resolution = 24
 

Detailed Description

Generated from:  MR::Image

struct to hold Image data
\\ingroup BasicStructuresGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.Image.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/3]

None mrmeshpy.Image.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.Image.__init__ ( self,
std_vector_Color pixels,
Vector2i resolution )
Implicit aggregate constructor.

Reimplemented in mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.

Member Function Documentation

◆ __getitem__() [1/2]

Color mrmeshpy.Image.__getitem__ ( self,
Vector2i p )
fetches some texture element specified by integer coordinates

◆ __getitem__() [2/2]

Color mrmeshpy.Image.__getitem__ ( self,
Vector2i p )

◆ __setitem__()

None mrmeshpy.Image.__setitem__ ( self,
Vector2i arg0,
Color arg1 )

◆ heapBytes()

int mrmeshpy.Image.heapBytes ( self)
returns the amount of memory this object occupies on heap

◆ operator() [1/2]

Image mrmeshpy.Image.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

Image mrmeshpy.Image.operator ( * args,
** kwargs )
static

◆ sample()

Color mrmeshpy.Image.sample ( self,
FilterType filter,
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

◆ sampleBilinear()

Color mrmeshpy.Image.sampleBilinear ( self,
Vector2f pos )
Given texture position in [0,1]x[0,1] (which is clamped if necessary),
returns bilinear interpolated color at it

◆ sampleDiscrete()

Color mrmeshpy.Image.sampleDiscrete ( self,
Vector2f pos )
Given texture position in [0,1]x[0,1] (which is clamped if necessary),
returns the color of the closest pixel

Member Data Documentation

◆ _offsetof_pixels

typing mrmeshpy.Image._offsetof_pixels = 0
staticprotected

◆ _offsetof_resolution

typing mrmeshpy.Image._offsetof_resolution = 24
staticprotected

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