Pink 0.9
Functions

mcimage.h File Reference

This file holds the basic image allocation functions. More...

Functions

struct xvimageallocimage (char *name, index_t rs, index_t cs, index_t ds, int32_t t)
 Allocates an image object with the given size and type.
void razimage (struct xvimage *f)
 fills the image with zeros description Sets every pixel of the image to binary zero.
void freeimage (struct xvimage *image)
 Frees an image object.
void writeimage (struct xvimage *image, char *filename)
 Writes an image to disk.
struct xvimagereadimage (const char *filename)
 Reads an image from a file.

Detailed Description

This file holds the basic image allocation functions.

Pink

Author:
Michel Couprie, 2009

Function Documentation

struct xvimage* allocimage ( char *  name,
index_t  rs,
index_t  cs,
index_t  ds,
int32_t  t 
) [read]

Allocates an image object with the given size and type.

Parameters:
nameNot used
rsx-size
csy-size
dsz-size
tt-size
Returns:
The pointer to the image.
void freeimage ( struct xvimage image)

Frees an image object.

Parameters:
imageThe pointer to the image

Referenced by pink::ujoi< pixel_type_ >::ujoi().

void razimage ( struct xvimage f)

fills the image with zeros description Sets every pixel of the image to binary zero.

Parameters:
fthe input image
Returns:
no return value
struct xvimage* readimage ( const char *  filename) [read]

Reads an image from a file.

Parameters:
filenameThe name of the image file.
Returns:
A Pointer to a newly allocated image.

Referenced by pink::ujoi< pixel_type_ >::ujoi().

void writeimage ( struct xvimage image,
char *  filename 
)

Writes an image to disk.

Parameters:
imageThe pointer to the image
filenameThe file to write the image at.

Referenced by pink::ujoi< pixel_type_ >::ujoi().