| 208 | |
| 209 | |
| 210 | void |
| 211 | ImageBuf_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 | |
| 219 | void |
| 220 | ImageBuf_setpixel2 (ImageBuf &buf, int x, int y, tuple p) |
no test coverage detected