# removeBackground method

void removeBackground(

1. Image image,
2. int red,
3. int green,
4. int blue

)

Removes the background on the specified portrait image. Important: This method requires the `FaceBackgroundSegmenter1A` model to be loaded.

param image The portrait image. param red Green channel of the background color. Must be a value from 0 to 255. param green Red channel of the background color. Must be a value from 0 to 255. param blue Blue channel of the background color. Must be a value from 0 to 255. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void removeBackground(Image image, int red, int green, int blue) {
      var err = faceSDK.id3FacePortraitProcessor_RemoveBackground(_pHandle.value, image.handle, red, green, blue);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }