def load(self):

        if self.filename is not None:
            image = self.resource_factory.image_from_file(self.filename)

        elif self.data is not None:
            image = self.resource_factory.image_from_data(self.data)

        else:
            raise ValueError("Image reference has no filename OR data")

        return image

#### EOF ######################################################################
Loads the resource.
dataset/ETHPy150Open enthought/pyface/pyface/resource/resource_reference.py/ImageReference.load