@classmethod
    def from_subtexture(cls, texture, x, y, width, height):
        return cls(texture.get_region(x, y, width, height), x, y)
Image is a section of the texture.
dataset/ETHPy150Open ardekantur/pyglet/contrib/scene2d/scene2d/image.py/Image2d.from_subtexture