ae v0.0.1981 (2017-07-03T22:25:46Z)
Home
Dub
Repo
fromPixels
ae
utils
graphics
image
Loads a raw COLOR[] into an image of the indicated size.
auto
fromPixels
(INPUT[] input, uint w, uint h, TARGET target)
auto
fromPixels
(
C
=
InputColor
INPUT
TARGET
)
(
INPUT
[]
input
,
uint
w
,
uint
h
,
auto
ref
TARGET
target
)
if
(
isWritableView
!
TARGET
&&
is
(
GetInputColor
!(
C
,
INPUT
) ==
ViewColor
!
TARGET
)
)
auto
fromPixels
(INPUT[] input, uint w, uint h)
Meta
Source
See Implementation
ae
utils
graphics
image
aliases
ElementViewImage
GetInputColor
ViewImage
enums
isTargetColor
functions
copy
copyPixels
copyScanline
fromPixels
hjoin
parseBMP
parsePBM
toBMP
toPBM
toPNG
toRef
vjoin
properties
bitmapPixelStride
structs
Image
ImageRef
InputColor
TargetColor
templates
bitmapBitCount
downscale
Loads a raw COLOR[] into an image of the indicated size.