icetImageGetColorFormat(3)
β¨ NAME β¨
icetImageGetColorFormat, icetImageGetDepthFormat β bestie, these two literally just tell you the format of your image buffers π
(Yes it's page icetImageGetColorFormat(3) from the IceT Reference manual, and yes we're getting into it.)
πΈ SYNOPSIS πΈ
#include <IceT.h>
IceTEnum icetImageGetColorFormat( const IceTImage image );
IceTEnum icetImageGetDepthFormat( const IceTImage image );
π DESCRIPTION π
okay so. icetImageGetColorFormat and icetImageGetDepthFormat both hand you back an entry from an enumeration, and that entry says what data format is stored inside the image you passed in. That's it, that's the whole vibe π¦
And like, this format thing? Not just decorative. It's the β¨main characterβ¨ because it decides which one of icetImageGetColor or icetImageGetDepth you're supposed to use, and it also decides what the resulting data is gonna look like. So you kinda need it. no cap.
π RETURN VALUE π
π color formats
icetImageGetColorFormat returns one of these, and here's what each one means for the format of the stored color data:
ICET_IMAGE_COLOR_RGBA_UBYTEβ every entry is an RGBA color tuple. Each component lives in the range from0to255and is stored as an 8-bit integer. Also the buffer will always be allocated on memory boundaries such that each color value can be treated as a single 32-bit integer. slay, alignment πICET_IMAGE_COLOR_RGBA_FLOATβ every entry is an RGBA color tuple. Each component is in the range from0.0to1.0and is stored as a 32-bit float.ICET_IMAGE_COLOR_RGB_FLOATβ every entry is an RGB color triple. Each component is in the range from0.0to1.0and is stored as a 32-bit float. β οΈ heads up bestie: there is no alpha channel, so the color blending composite mode will not work with this color format. it's giving incomplete, honestly πICET_IMAGE_COLOR_NONEβ no color values are stored in the image. empty. void. nothing. π
π¦ depth formats
icetImageGetDepthFormat returns one of these, and here's what each one means for the format of the stored depth data:
ICET_IMAGE_DEPTH_FLOATβ every entry is in the range from0.0(near plane) to1.0(far plane) and is stored as a 32-bit float.ICET_IMAGE_DEPTH_NONEβ no depth values are stored in the image. again: nothing π
π ERRORS π
None. not a single one. flawless behavior, honestly π
π«Ά WARNINGS π«Ά
None. we stay safe out here πΈ
π BUGS π
None known. iconic. no notes.
π COPYRIGHT π
Copyright (C)2010 Sandia Corporation
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.
This source code is released under the New BSD License.
β SEE ALSO β
icetImageGetColor(3), icetImageGetDepth(3), icetSetColorFormat(3), icetSetDepthFormat(3)
go read those too bestie, they're the whole friend group π«Ά
and that's the page!! from the IceT Reference manual, dated September 20, 2010 β yeah she's an older queen but she still ate π β¨ bye bestie, go format some images π
π¦ where this page comes from
- debian bookworm: paraview 5.11.0+dfsg-1+b1 Β· BSD-3-Clause
- debian trixie: paraview 5.13.2+dfsg-3 Β· BSD-3-Clause
- ubuntu jammy: paraview 5.10.0~rc1-1build3 Β· BSD-3-Clause
- ubuntu noble: paraview 5.11.2+dfsg-6build5 Β· BSD-3-Clause
- ubuntu questing: paraview 5.13.2+dfsg-3
- ubuntu resolute: paraview 6.0.1+dfsg1-7 Β· BSD-3-Clause
- ubuntu stonking: paraview 6.1.1+dfsg1-2build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms