Inheritance diagram for mrmeshpy.Image:Public Member Functions | |
| Color | __getitem__ (self, Vector2i p) |
| Color | __getitem__ (self, Vector2i p) |
| None | __init__ (self) |
| None | __init__ (self, Image arg0) |
| 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 |
Generated from: MR::Image struct to hold Image data
|
static |
Reimplemented in mrmeshpy.MeshTexture, mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.
| None mrmeshpy.Image.__init__ | ( | self | ) |
Reimplemented in mrmeshpy.MeshTexture, mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.
| None mrmeshpy.Image.__init__ | ( | self, | |
| Image | arg0 ) |
Implicit copy constructor.
Reimplemented in mrmeshpy.MeshTexture, mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.
| None mrmeshpy.Image.__init__ | ( | self, | |
| std_vector_Color | pixels, | ||
| Vector2i | resolution ) |
Implicit aggregate constructor.
Reimplemented in mrmeshpy.MeshTexture, mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.
fetches some texture element specified by integer coordinates
| int mrmeshpy.Image.heapBytes | ( | self | ) |
returns the amount of memory this object occupies on heap
|
static |
Reimplemented in mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.
|
static |
Reimplemented in mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.
| 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
Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns bilinear interpolated color at it
Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns the color of the closest pixel
|
staticprotected |
|
staticprotected |