com.io7m.r2.core

## Class R2ImageBufferDescriptionScaler

- java.lang.Object
- - com.io7m.r2.core.R2ImageBufferDescriptionScaler

- All Implemented Interfaces:
    BiFunction<R2ImageBufferDescriptionType,com.io7m.jareas.core.AreaInclusiveUnsignedLType,R2ImageBufferDescriptionType>

      public final class R2ImageBufferDescriptionScaler
      extends Object
      implements BiFunction<R2ImageBufferDescriptionType,com.io7m.jareas.core.AreaInclusiveUnsignedLType,R2ImageBufferDescriptionType>

  A function that, given a render target description and an inclusive area, returns a new description of the same type with the given area.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `R2ImageBufferDescriptionType` | `apply(R2ImageBufferDescriptionType d, com.io7m.jareas.core.AreaInclusiveUnsignedLType a)`
    `static R2ImageBufferDescriptionScaler` | `get()`

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

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

    - ### Methods inherited from interface java.util.function.BiFunction

      `andThen`

- - ### Method Detail

    - #### get

          public static R2ImageBufferDescriptionScaler get()

      Returns:
        A function that, given a render target description and an inclusive area, returns a new description of the same type with the given area

    - #### apply

          public R2ImageBufferDescriptionType apply(R2ImageBufferDescriptionType d,
                                                    com.io7m.jareas.core.AreaInclusiveUnsignedLType a)

      Specified by:
        `apply` in interface `BiFunction<R2ImageBufferDescriptionType,com.io7m.jareas.core.AreaInclusiveUnsignedLType,R2ImageBufferDescriptionType>`

Copyright © 2017 <code@io7m.com> http://io7m.com