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

Function fg_create_image

src/api/c/image.cpp:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21using forge::common::getWindow;
22
23fg_err fg_create_image(fg_image* pImage,
24 const unsigned pWidth, const unsigned pHeight,
25 const fg_channel_format pFormat, const fg_dtype pType)
26{
27 try {
28 ARG_ASSERT(1, (pWidth>0));
29 ARG_ASSERT(2, (pHeight>0));
30
31 *pImage = getHandle(new common::Image(pWidth, pHeight, pFormat, (forge::dtype)pType));
32 }
33 CATCHALL
34
35 return FG_ERR_NONE;
36}
37
38fg_err fg_retain_image(fg_image* pOut, fg_image pImage)
39{

Callers 1

ImageMethod · 0.85

Calls 1

getHandleFunction · 0.85

Tested by

no test coverage detected