Table of Contents

NAME

QccIMGImageComponentCopy, QccIMGImageComponentAdd, QccIMGImageComponentSubtract - copy and arithmetic operations on image components

SYNOPSIS

#include "libQccPack.h"

int QccIMGImageComponentCopy(QccIMGImageComponent *image_component1, const QccIMGImageComponent *image_component2);
int QccIMGImageComponentAdd(const QccIMGImageComponent *image_component1, const QccIMGImageComponent *image_component2, QccIMGImageComponent *image_component3);
int QccIMGImageComponentSubtract(const QccIMGImageComponent *image_component1, const QccIMGImageComponent *image_component2, QccIMGImageComponent *image_component3);

DESCRIPTION

QccIMGImageComponentCopy() copies the contents of image_component2 into image_component1. If image_component1 has not yet been allocated, it is allocated to the same size as image_component2 with a call to QccIMGImageComponentAlloc(3) . If image_component1 is allocated, it must be the same size as image_component2.

QccIMGImageComponentAdd() adds image_component1 to image_component2, pixel by pixel, returning the result in image_component3. image_component3 must be allocated prior to calling QccIMGImageComponentAdd(), and image_component1, image_component2, and image_component3 must all be the same size.

QccIMGImageComponentSubtract() subtracts image_component2 from image_component1, pixel by pixel, returning the result in image_component3. image_component3 must be allocated prior to calling QccIMGImageComponentSubtract(), and image_component1, image_component2, and image_component3 must all be the same size.

RETURN VALUES

These routines return 0 on success and 1 on error.

SEE ALSO

QccIMGImageComponent(3) , QccPackIMG(3) , QccPack(3)

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads