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

Function fg_add_image_to_chart

src/api/c/chart.cpp:214–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214fg_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
233fg_err fg_add_histogram_to_chart(fg_histogram* pHistogram, fg_chart pChart,
234 const unsigned pNBins, const fg_dtype pType)

Callers 1

imageMethod · 0.85

Calls 3

getChartFunction · 0.85
getHandleFunction · 0.85
addRenderableMethod · 0.45

Tested by

no test coverage detected