# DecodedImage

## Fields

std::vector< unsigned char > | `pixels`
unsigned int | `width`
unsigned int | `height`
int | `channels`

## Functions

| `DecodedImage`
| `DecodedImage`
| `~DecodedImage`
bool | `IsValid`
| `DecodedImage`
DecodedImage & | `operator=`
| `DecodedImage`
DecodedImage & | `operator=`

## Detailed Description

class `DecodedImage`

  Decoded in-memory image. Owns the pixel buffer via std::vector.

  Public Functions

  `DecodedImage`() = default

    Default constructor — empty image.

  `DecodedImage`(unsigned char const *png_data, size_t png_size)

    Construct by decoding a PNG blob from memory. On failure, pixels is empty and dimensions are zero.

    Parameters: | png_data – Pointer to the PNG file bytes. png_size – Number of bytes in `png_data`.

  `~DecodedImage`() = default
  inline bool `IsValid`() const

    Returns: | true if the image was decoded successfully.

  `DecodedImage`(DecodedImage const&) = delete
  DecodedImage &`operator=`(DecodedImage const&) = delete
  `DecodedImage`(DecodedImage&&) = default
  DecodedImage &`operator=`(DecodedImage&&) = default

  Public Members

  std::vector<unsigned char> `pixels`

    Pixel data. Empty on failure.

  unsigned int `width` = 0

    Image width in pixels.

  unsigned int `height` = 0

    Image height in pixels.

  int `channels` = 0

    Bytes per pixel: 1 = grayscale, 3 = RGB, 4 = RGBA.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Visualize 3DF in your own language, or choose a sample question below to start a conversation:

What is HOOPS Visualize 3DF?
What are the latest release notes for HOOPS Visualize 3DF?
How do I start evaluating HOOPS Visualize 3DF?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...