tida ~master (2021-10-06T18:27:09Z)
Home
Dub
Repo
bytesPerColor
tida
color
Shows how many bytes are contained in a color unit.
template
bytesPerColor (
int
pixelformat
T
=
ubyte
) {
static if
(
pixelformat == PixelFormat.RGBA || pixelformat == PixelFormat.ARGB || pixelformat == PixelFormat.BGRA
)
enum
bytesPerColor
;
static if
(!(
pixelformat == PixelFormat.RGBA || pixelformat == PixelFormat.ARGB || pixelformat == PixelFormat.BGRA
))
enum
bytesPerColor
;
}
Members
Manifest constants
bytesPerColor
enum
bytesPerColor
;
Undocumented in source.
bytesPerColor
enum
bytesPerColor
;
Undocumented in source.
Meta
Source
See Implementation
tida
color
aliases
BlendAdd
BlendAddAlpha
BlendAddMul
BlendAlpha
BlendMultiply
BlendSrc2DST
FuncBlend
mix
enums
BlendFactor
PixelFormat
functions
BlendFunc
BlendImpl
convert
fromColor
fromColors
fromFormat
hexTo
parseColor
rgb
rgba
validateBytes
manifest constants
CannotDetectAuto
structs
Color
templates
bytesPerColor
isColor
isValidFormat
Shows how many bytes are contained in a color unit.