| 212 | } |
| 213 | |
| 214 | fg_err fg_add_image_to_chart(fg_image* pImage, fg_chart pChart, |
| 215 | const unsigned pWidth, const unsigned pHeight, |
| 216 | const fg_channel_format pFormat, |
| 217 | const fg_dtype pType) |
| 218 | { |
| 219 | try { |
| 220 | ARG_ASSERT(1, (pChart!=0)); |
| 221 | ARG_ASSERT(2, (pWidth>0)); |
| 222 | ARG_ASSERT(3, (pHeight>0)); |
| 223 | |
| 224 | common::Image* img = new common::Image(pWidth, pHeight, pFormat, (forge::dtype)pType); |
| 225 | getChart(pChart)->addRenderable(img->impl()); |
| 226 | *pImage = getHandle(img); |
| 227 | } |
| 228 | CATCHALL |
| 229 | |
| 230 | return FG_ERR_NONE; |
| 231 | } |
| 232 | |
| 233 | fg_err fg_add_histogram_to_chart(fg_histogram* pHistogram, fg_chart pChart, |
| 234 | const unsigned pNBins, const fg_dtype pType) |
no test coverage detected