WebVfx 0.1.6-6-g5144893-dirty
Public Member Functions | Static Public Attributes
WebVfx::Image Class Reference

Lightweight class for passing around a reference to a buffer of raw image data. More...

#include <image.h>

List of all members.

Public Member Functions

 Image (unsigned char *pixels, int width, int height, int byteCount)

Static Public Attributes

static const int BytesPerPixel = 3
 Number of bytes per pixel.

Detailed Description

Lightweight class for passing around a reference to a buffer of raw image data.

Image is a wrapper around a buffer of RGB image data, along with metadata about it (width, height, bytes per row etc.). The underlying image data buffer is not owned by Image and its lifetime must exceed that of the referencing Image instance.


Constructor & Destructor Documentation

WebVfx::Image::Image ( unsigned char *  pixels,
int  width,
int  height,
int  byteCount 
) [inline]
Parameters:
pixels24 bit RGB image data. Must be valid for the lifetime of the Image.
widthWidth of the image in pixels
heightHeight of the image in pixels
byteCountNumber of bytes in the image. A row can have more than width * BytesPerPixel bytes.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Enumerations Enumerator