Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxSetPartImage.c File Reference

More...

#include "HxImageRep.h"
#include "HxUpoSetPartImage.h"

Functions

HxImageRep L_HXIMAGEREP HxSetPartImage (HxImageRep im, int x1, int y1, int x2, int y2, HxValue val)
 SetPartImage. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxSetPartImage HxImageRep    im,
int    x1,
int    y1,
int    x2,
int    y2,
HxValue    val
 

SetPartImage.

The function replaces all pixels in rectange (x1,y1,x2,y2) with the given value "val".

00025 {
00026     HxTagList tags;
00027     HxAddTag(tags, "x1", x1);
00028     HxAddTag(tags, "y1", y1);
00029     HxAddTag(tags, "x2", x2);
00030     HxAddTag(tags, "y2", y2);
00031     HxAddTag(tags, "val", val);
00032 
00033     HxAddTag(tags, "inside", true);
00034 
00035     return im.unaryPixOp("setPartImg", tags);
00036 }


Generated on Tue Feb 3 14:18:51 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001