fromPixels

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

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

Meta