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

Function fg_set_image_alpha

src/api/c/image.cpp:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63fg_err fg_set_image_alpha(fg_image pImage, const float pAlpha)
64{
65 try {
66 ARG_ASSERT(0, (pImage!=0));
67 ARG_ASSERT(1, (pAlpha>=0.0 && pAlpha<=1.0));
68
69 getImage(pImage)->setAlpha(pAlpha);
70 }
71 CATCHALL
72
73 return FG_ERR_NONE;
74}
75
76fg_err fg_set_image_aspect_ratio(fg_image pImage, const bool pKeepRatio)
77{

Callers 1

setAlphaMethod · 0.85

Calls 2

getImageFunction · 0.85
setAlphaMethod · 0.45

Tested by

no test coverage detected