CGapiSurface* mask = new CGapiSurface();
mask->CreateSurface(NULL,width,height);
mask->FillSurface
(NULL,RGB(0,alpha,0),NULL,NULL);
MyQuestion:
How much memory will be allocated for the mask?
size of (RGB)*width*height or
sizeof(G)*widht*height?
(the R and B component are 0)
Note that keeping memory only the G component of the surface is enough ...
[/code]