Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
86
Bitmap 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
95
void destroyBitmap(Bitmap& bmp)
96
{
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected