def masks(self, dims, z=None):
        coords = self._coords()
        return [polygon_to_mask(x, dims, z) for x in coords]
QueryInterface is forwarded to the real com object.
dataset/ETHPy150Open lightning-viz/lightning-python/lightning/types/images.py/ImagePoly.masks--crossover with--dataset/ETHPy150Open enthought/comtypes/comtypes/client/dynamic.py/_Dispatch.QueryInterface