fromPixels

Loads a raw COLOR[] into an image of the indicated size.

  1. auto fromPixels(INPUT[] input, xy_t w, xy_t h, TARGET target)
    fromPixels
    (
    INPUT
    TARGET
    )
    (
    INPUT[] input
    ,,,
    auto ref TARGET target
    )
    if (
    isWritableView!TARGET &&
    is(GetInputColor!(C, INPUT) == ViewColor!TARGET)
    )
  2. auto fromPixels(INPUT[] input, xy_t w, xy_t h)

Meta