| 243 | } |
| 244 | |
| 245 | fg_err fg_draw_image_to_cell(const fg_window pWindow, const int pRows, const int pCols, const int pIndex, |
| 246 | const fg_image pImage, const char* pTitle, const bool pKeepAspectRatio) |
| 247 | { |
| 248 | try { |
| 249 | ARG_ASSERT(0, (pWindow!=0)); |
| 250 | ARG_ASSERT(1, (pRows>0)); |
| 251 | ARG_ASSERT(2, (pCols>0)); |
| 252 | ARG_ASSERT(3, (pIndex>=0)); |
| 253 | ARG_ASSERT(4, (pImage!=0)); |
| 254 | |
| 255 | getWindow(pWindow)->draw(pRows, pCols, pIndex, getImage(pImage), pTitle, pKeepAspectRatio); |
| 256 | } |
| 257 | CATCHALL |
| 258 | return FG_ERR_NONE; |
| 259 | } |
| 260 | |
| 261 | fg_err fg_draw_chart_to_cell(const fg_window pWindow, const int pRows, const int pCols, const int pIndex, |
| 262 | const fg_chart pChart, const char* pTitle) |