Image(3)

πŸ“¦
version 0.1.0 Β· 2 versions
, in fedora 43

πŸ’– Image(3) β€” the main character of the library, no cap πŸ’–

Library Functions Manual Β· Simple Image Loading LibrarY


✨ NAME ✨

Image β€” okay bestie, this is THE main user class of the library. The whole vibe. The one you're actually here for. πŸ‘‘


🌸 SYNOPSIS 🌸

#include <SILLYImage.h>

πŸŽ€ Public Member Functions πŸŽ€

  • size_t getHeight () const β€” grabs the height of the image for u πŸ¦‹
  • const char * getLoaderIdentifierString () const β€” hands u the Image loader identifier string, iykyk
  • PixelFormat getPixelFormat () const β€” tells u the pixel format of the resulting image ✨
  • const byte * getPixelsDataPtr () const β€” gives u a pointer to the pixels data. the actual pixels. iconic.
  • size_t getPixelsDataSize () const β€” the size of the pixel buffer, periodt πŸ’…
  • PixelFormat getSourcePixelFormat () const β€” the pixel format used for the image storage πŸ”₯
  • size_t getWidth () const β€” the width, obviously πŸ’–
  • Image (DataSource &data) β€” Constructor! hi hello welcome 🫢
  • bool isValid () const β€” returns true if the image is valid after its loading βœ…
  • bool loadImageData (PixelFormat resultFormat=PF_RGBA, PixelOrigin origin=PO_TOP_LEFT) β€” loads the image pixels into memory and stores them in resultFormat. the big one. the main event. πŸ’€
  • bool loadImageHeader () β€” retrieves the info concerning the image object πŸ‘‘
  • ~Image () β€” Destructor. bye bestie 😭

πŸ’œ Detailed Description πŸ’œ

Image is the main user class of the library. that's it. that's the whole thing. main character energy fr fr.

Definition at line 46 of file SILLYImage.h.


🧚 Constructor & Destructor Documentation 🧚

🌈 Image (DataSource & data)

Constructor. it's giving "new beginnings" ✨

Parameters

  • data β€” the raw input containing the image

Definition at line 48 of file SILLYImage.cpp.


⭐ Member Function Documentation ⭐

πŸ’… bool loadImageData (PixelFormat resultFormat = PF_RGBA, PixelOrigin origin = PO_TOP_LEFT)

Load the image pixels in memory and store them in resultFormat. this is the function u call when u actually want the pixels, bestie.

Parameters

  • resultFormat β€” the pixel format to be used for storing the result
  • origin β€” expected origin position for the pixels

Returns

  • true on success, false if an error occured 😭
Note β€” this function can be called several time if the pixel format are different the format is reloaded. so like, u can hit it more than once, she's flexible πŸ¦‹

Definition at line 68 of file SILLYImage.cpp.

πŸ“ bool loadImageHeader ()

Retrieve the information concerning the image object. the lil sneak peek before u commit to the pixels.

Returns

  • true on success βœ…

Definition at line 54 of file SILLYImage.cpp.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Simple Image Loading LibrarY from the source code. not me being written by a robot πŸ’€ slay.


And that's the whole page, bestie!! Simple Image Loading LibrarY, Version 0.1.0 β€” that's the source and the version, and we're closing out on Image(3). mwah πŸ’‹ πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from