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

Function createBitmap

examples/cpu/fractal.cpp:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86Bitmap createBitmap(unsigned w, unsigned h)
87{
88 Bitmap retVal;
89 retVal.width = w;
90 retVal.height= h;
91 retVal.ptr = new unsigned char[4*w*h];
92 return retVal;
93}
94
95void destroyBitmap(Bitmap& bmp)
96{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected