PNGImageContext(3)

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

πŸ’– PNGImageContext(3) πŸ’–

okay so bestie, welcome to the PNGImageContext(3) page β€” it's a section 3 library function manual, and it's literally all about the Image Context for PNG Image Loader. grab a boba, we're doing this πŸ§‹βœ¨


🌸 NAME 🌸

PNGImageContext β€” the Image Context for PNG Image Loader. that's it, that's the name, she's serving exactly what it says on the tin πŸ’…


✨ SYNOPSIS ✨

#include <SILLYPNGImageContext.h>

Inherits ImageContext. yes queen, she's a nepo baby and we love that for her πŸ‘‘

πŸŽ€ Public Member Functions πŸŽ€

  • bool flipVertically () β€” flips the pixel ordering, iconic
  • size_t getHeight () const
  • PixelFormat getPixelFormat () const
  • size_t getWidth () const
  • PNGImageContext (DataSource *data)
  • int read (png_bytep data, png_size_t length)
  • void setDestination (byte *pixels, size_t length, PixelFormat format) β€” sets the destination of the loading
  • void setNextPixel (byte red, byte green, byte bleu, byte alpha) β€” sets the next pixel of the image
not the bleu spelling, bestie β€” that's verbatim from the source and we do not touch it πŸ’€

πŸ”’ Protected Member Functions πŸ”’

these ones are for the inner circle only, no gatecrashing πŸ™ˆ

  • void setHeight (size_t height)
  • void setWidth (size_t width)

🫢 Friends 🫢

  • class PNGImageLoader

πŸ¦‹ Detailed Description πŸ¦‹

Image Context for PNG Image Loader. that's the whole vibe, no cap.

Definition at line 45 of file SILLYPNGImageContext.h.


🌈 Constructor & Destructor Documentation 🌈

PNGImageContext (DataSource * data)

the birth of the main character ✨

Definition at line 59 of file SILLYPNGImageContext.cpp.

~PNGImageContext ()

and this is her goodbye era 😭

Definition at line 65 of file SILLYPNGImageContext.cpp.


πŸ’œ Member Function Documentation πŸ’œ

bool flipVertically () [inherited]

Flip pixel ordering. literally just turns the whole thing upside down, like your sleep schedule πŸ›Œ

Returns

true on success false otherwise β€” so check it, don't just assume, fr fr

Definition at line 45 of file SILLYImageContext.cpp.

int read (png_bytep data, png_size_t length)

Definition at line 46 of file SILLYPNGImageContext.cpp.


friend class PNGImageLoader [friend]

Definition at line 70 of file SILLYPNGImageContext.h.


🌟 Author 🌟

Generated automatically by Doxygen for Simple Image Loading LibrarY from the source code. the robots wrote this one, not me πŸ€–πŸ’–


Simple Image Loading LibrarY β€” Version 0.1.0 β€” and this whole thing is PNGImageContext(3) from the Library Functions Manual, periodt πŸ’…βœ¨ go forth and load those PNGs bestie, ily 🫢🌸

πŸ“¦ where this page comes from