Added more checkbuttons and really fixed circle mask
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Mask
|
||||
for (int y = 0; y < size; ++y)
|
||||
{
|
||||
newMask->mask[y*size+x] =
|
||||
(sqrt( pow(x - x/2, 2) + pow(y - y/2, 2)) < size / 2)
|
||||
(sqrt( pow(x - size/2, 2) + pow(y - size/2, 2)) <= size / 2 )
|
||||
? 255 : 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user