# fromValue static method

ImageError fromValue(

1. int value

)

Creates an enumeration value from int. param value The int value. return The created ImageError.

## Implementation

    static ImageError fromValue(int value) {
        	switch (value) {
          	case 0:
            	return ImageError.success;
          	case -1:
            	return ImageError.insufficientBuffer;
          	case -2:
            	return ImageError.objectDoesNotExist;
          	case -3000:
            	return ImageError.base;
          	case -3999:
            	return ImageError.minimum;
          	case -3001:
            	return ImageError.invalidHandle;
          	case -3002:
            	return ImageError.invalidParameter;
          	case -3003:
            	return ImageError.imageSizeMismatch;
          	case -3004:
            	return ImageError.pixelFormatMismatch;
          	case -3005:
            	return ImageError.keyAlreadyExists;
          	case -3006:
            	return ImageError.keyNotFound;
          	case -3007:
            	return ImageError.invalidPixelFormat;
          	case -3008:
            	return ImageError.pythonModule;
          	case -3009:
            	return ImageError.functionNotImplemented;
          	case -3010:
            	return ImageError.backendError;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}