@classmethod
    def load(cls, filename=None, file=None):
        img = image.load(filename=filename, file=file)
        img = cls(img.texture, 0, 0)
        img.filename = filename
        return img
Image is loaded from the given file.
dataset/ETHPy150Open ardekantur/pyglet/contrib/scene2d/scene2d/image.py/Image2d.load