BitMap.createFromImageAlpha

Creates a bitmap that matches the given image dimensions, every element of the bitmap is set to false if the alpha value of the image at that position is equal to threshold or less, and true in other case.

struct BitMap
@nogc nothrow
void
createFromImageAlpha
(,
in double threshold = 0.1
)

Meta