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 |
Generated from: MR::Image struct to hold Image data
| 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
| Color mrmeshpy.ConstImage.__getitem__ | ( | self, | |
| ConstVector2i | p ) |
| int mrmeshpy.ConstImage.heapBytes | ( | self | ) |
returns the amount of memory this object occupies on heap
| Const_std_vector_Color mrmeshpy.ConstImage.pixels | ( | self | ) |
Reimplemented in mrmeshpy.Image, and mrmeshpy.Image.
| ConstVector2i mrmeshpy.ConstImage.resolution | ( | self | ) |
Reimplemented in mrmeshpy.Image, and mrmeshpy.Image.
| 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
| 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
| 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
|
staticprotected |
|
staticprotected |