icetImageGetNumPixels(3)

πŸ’– icetImageGetNumPixels(3) β€” IceT Reference πŸŽ€

okay bestie, welcome to the group chat, today we're talking about icetImageGetWidth, icetImageGetHeight, and icetImageGetNumPixels β€” three little icons from the IceT reference manual and honestly? they're giving measurement era. ✨


✨ NAME ✨

icetImageGetWidth, icetImageGetHeight, icetImageGetNumPixels β€” get dimensions of an image πŸ“


🌸 Synopsis 🌸

#include <IceT.h>

IceTSizeType   icetImageGetWidth       (  const IceTImage   image   );
IceTSizeType   icetImageGetHeight      (  const IceTImage   image   );
IceTSizeType   icetImageGetNumPixels   (  const IceTImage   image   );

like. look at that signature. three besties, one job. πŸ’…


πŸ¦‹ Description πŸ¦‹

so icetImageGetWidth, icetImageGetHeight, and icetImageGetNumPixels let you query the size of an image with respect to the number of pixels. no cap, that's the whole vibe.

and here's the tea πŸ«– β€” these functions define the buffer size returned by icetImageGetColor and icetImageGetDepth. so if you're out here allocating buffers and wondering "how much do I even need", it's them. they're the blueprint. the moment. πŸŽ€


πŸ‘‘ Return Value πŸ‘‘

icetImageGetWidth returns the number of pixels along the horizontal axis of the image, and icetImageGetHeight returns the number of pixels along the vertical axis of the image.

icetImageGetNumPixels is the convenience function of the trio β€” it returns the total number of pixels in image, aka the width times the height. literally just math, but make it a function. πŸ’–


πŸ’€ Errors πŸ’€

None. not a single one. flawless behaviour, no notes. ✨


πŸ™ˆ Warnings πŸ™ˆ

None. she's safe, she's stable, she's not gonna hurt you. 🫢


πŸ› Bugs πŸ›

None known. icon behaviour only. πŸ‘‘


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 🌟


and that's the whole page, bestie! πŸŽ€ this was the IceT Reference manual, dated August 9, 2010, and this specific page is icetImageGetNumPixels(3). go measure something. slay. πŸ’…βœ¨πŸ¦‹