ae v0.0.2824 (2020-10-12T01:09:09Z)
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
PNGColourType
PNGCompressionMethod
PNGFilterAdaptive
PNGFilterMethod
PNGInterlaceMethod
bitmapNeedV4HeaderForRead
bitmapNeedV4HeaderForWrite
isTargetColor
functions
bitmapChannelMasks
copy
copyPixels
copyScanline
downscaleTo
fromPixels
hjoin
makePNG
parseBMP
parsePBM
toBMP
toPBM
toPNG
toRef
viewBMP
vjoin
properties
bitmapPixelStride
static variables
pngSignature
structs
Image
ImageRef
InputColor
PNGChunk
PNGChunkFooter
PNGChunkHeader
PNGHeader
TargetColor
templates
BMPStorageType
downscale
Loads a raw COLOR[] into an image of the indicated size.