# reallocate method

void reallocate(

1. int width,
2. int height,
3. PixelFormat pixelFormat

)

Reallocates the internal memory of the Image from parameters. Note: If the given parameters are the same as the ones of the object, then there is nothing done in this function.

param width The new width, in pixels. param height The new height, in pixels. param pixelFormat The new pixel format. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void reallocate(int width, int height, PixelFormat pixelFormat) {
      var err = faceSDK.id3FaceImage_Reallocate(_pHandle.value, width, height, pixelFormat.value);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }