MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.ConstImage:

Public Member Functions

Color __getitem__ (self, ConstVector2i p)
 __init__ (self, *args, **kwargs)
int heapBytes (self)
Color sample (self, FilterType filter, ConstVector2f pos)
Color sampleBilinear (self, ConstVector2f pos)
Color sampleDiscrete (self, ConstVector2f pos)
Const_std_vector_Color pixels (self)
ConstVector2i resolution (self)

Static Protected Attributes

typing _offsetof_pixels = 0
typing _offsetof_resolution = 24

Detailed Description

Generated from:  MR::Image

struct to hold Image data

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstImage.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstImage) -> None

2. __init__(self: meshlib.mrmeshpy.ConstImage, arg0: meshlib.mrmeshpy.ConstImage) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstImage, pixels: meshlib.mrmeshpy.Const_std_vector_Color, resolution: meshlib.mrmeshpy.ConstVector2i) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstImage, : meshlib.mrmeshpy.ConstImage) -> None

Member Function Documentation

◆ __getitem__()

Color mrmeshpy.ConstImage.__getitem__ ( self,
ConstVector2i p )

◆ heapBytes()

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

◆ pixels()

Const_std_vector_Color mrmeshpy.ConstImage.pixels ( self)

Reimplemented in mrmeshpy.Image, and mrmeshpy.Image.

◆ resolution()

ConstVector2i mrmeshpy.ConstImage.resolution ( self)

Reimplemented in mrmeshpy.Image, and mrmeshpy.Image.

◆ sample()

Color mrmeshpy.ConstImage.sample ( self,
FilterType filter,
ConstVector2f 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.ConstImage.sampleBilinear ( self,
ConstVector2f pos )
Given texture position in [0,1]x[0,1] (which is clamped if necessary),
returns bilinear interpolated color at it

◆ sampleDiscrete()

Color mrmeshpy.ConstImage.sampleDiscrete ( self,
ConstVector2f 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.ConstImage._offsetof_pixels = 0
staticprotected

◆ _offsetof_resolution

typing mrmeshpy.ConstImage._offsetof_resolution = 24
staticprotected

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