eu.id3.face

## Class ImageBuffer

- java.lang.Object
- - eu.id3.face.ImageBuffer

- All Implemented Interfaces:
    java.io.Serializable, java.lang.AutoCloseable

      public class ImageBuffer
      extends java.lang.Object
      implements java.lang.AutoCloseable, java.io.Serializable

  Represents an image buffer.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ImageBuffer()` Creates a new instance of the ImageBuffer class.
    `ImageBuffer(long handle)` Creates a new instance of the ImageBuffer class.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ImageBuffer` | `clone()` Creates a copy of the ImageBuffer object.
    `void` | `close()` Releases all resources used by this ImageBuffer.
    `protected void` | `finalize()` Finalizer for this class.
    `byte[]` | `getData()` Gets the image buffer data.
    `long` | `getHandle()` Gets the native handle.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ImageBuffer

          public ImageBuffer()
                      throws FaceException

      Creates a new instance of the ImageBuffer class.
      Throws:
        `FaceException` - An error has occurred during Face Library execution.

    - #### ImageBuffer

          public ImageBuffer(long handle)
                      throws FaceException

      Creates a new instance of the ImageBuffer class.
      Parameters:
        `handle` - Handle to the ImageBuffer.
      Throws:
        `FaceException` - An error has occurred during Face Library execution.

  - ### Method Detail

    - #### close

          public void close()

      Releases all resources used by this ImageBuffer.
      Specified by:
        `close` in interface `java.lang.AutoCloseable`

    - #### finalize

          protected void finalize()

      Finalizer for this class. Finalizers are deprecated since Java 9+. This method is not guaranteed to be called. To release all memory held by this class please be sure to call the close() method.
      Overrides:
        `finalize` in class `java.lang.Object`

    - #### getHandle

          public long getHandle()

      Gets the native handle.
      Returns:
        The native handle.

    - #### clone

          public ImageBuffer clone()
                            throws FaceException

      Creates a copy of the ImageBuffer object.
      Overrides:
        `clone` in class `java.lang.Object`
      Returns:
        The newly created ImageBuffer object.
      Throws:
        `FaceException` - An error has occurred during Face Library execution.

    - #### getData

          public byte[] getData()
                         throws FaceException

      Gets the image buffer data.
      Returns:
        Data of the image buffer object.
      Throws:
        `FaceException` - An error has occurred during Face Library execution.

Copyright © id3 Technologies. All rights reserved. eu.id3.face