MCPcopy Create free account
hub / github.com/arrayfire/forge / fg_draw_image_to_cell

Function fg_draw_image_to_cell

src/api/c/window.cpp:245–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245fg_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
261fg_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)

Callers 1

drawMethod · 0.85

Calls 3

getWindowFunction · 0.85
getImageFunction · 0.85
drawMethod · 0.45

Tested by

no test coverage detected