| 194 | |
| 195 | |
| 196 | bool |
| 197 | ImageOutputWrap::write_image (TypeDesc format, object &buffer, |
| 198 | stride_t xstride, stride_t ystride, |
| 199 | stride_t zstride) |
| 200 | { |
| 201 | imagesize_t size = m_output->spec().image_bytes(); |
| 202 | const void *array = make_read_buffer (buffer, size); |
| 203 | if (array) |
| 204 | return m_output->write_image (format, array, xstride, ystride, zstride); |
| 205 | return false; |
| 206 | } |
| 207 | |
| 208 | |
| 209 | bool |