'Return raw data as a string in the specified format.'

def tostring(self, format=imgformat.macrgb):

    if (((format == imgformat.macrgb) and (self.pixelSize == 32)) or ((format == imgformat.macrgb16) and (self.pixelsize == 16))):
        return self.data
        raise 'NotImplementedError', 'data    format    conversion'
