|
__init__(self,
size)
Return a Mask object.
The size argument is (width, height) of the mask.
The mask is represented by a list of java.util.BitSet. |
|
|
|
|
|
|
|
get_size(self)
Return width, height of mask. |
|
|
|
get_at(self,
pos)
Return bit setting for given pos. |
|
|
|
set_at(self,
pos,
value=1)
Set bit for given pos.
Optional value to set bit, eith 1 or 0, defaults to 1. |
|
|
|
|
|
|
|
invert(self)
Invert bit value in mask. |
|
|
|
count(self)
Return count of true bits in mask. |
|
|
|
overlap(self,
mask,
offset)
Return True if mask at offset position overlap with this mask. |
|
|
|
toString(self,
bit=('1','0'))
Return string representation of mask.
Optional bit argument specify bit character. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|