MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenImageIO / ImageBuf_setpixel

Function ImageBuf_setpixel

src/python/py_imagebuf.cpp:210–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208
209
210void
211ImageBuf_setpixel (ImageBuf &buf, int x, int y, int z, tuple p)
212{
213 std::vector<float> pixel;
214 py_to_stdvector (pixel, p);
215 if (pixel.size())
216 buf.setpixel (x, y, z, &pixel[0], pixel.size());
217}
218
219void
220ImageBuf_setpixel2 (ImageBuf &buf, int x, int y, tuple p)

Callers 1

ImageBuf_setpixel2Function · 0.85

Calls 3

py_to_stdvectorFunction · 0.85
setpixelMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected