Routines
|
PutGrayPix routine
Set the graylevel of one certain pixel in an image object in the memory.
required external library: image
Parameters
img |
[in] GrayImage variable that embed the image in memory |
x |
[in] column of pixel whose colour is about to changed |
y |
[in] line of pixel whose colour is about to changed |
graylevel |
[in] level of gray attribute of the pixel; value 0 is associated with black and value 255 with white colour |
Return values
If the pixel line and column direct to outside the image boundary, no pixel graylevel is set and
the routine's return value is 0. Otherwise is 1.
Example code
- loadlib image;
- GrayImage i;
- main()
- {
- ...
- LoadGrayImage(i,"anger.bmp");
- PutGrayPix(i,10,10,0);
- }
Requirements
external dynamic link library: image.dll on the server
|
Last update : November 24, 2003
If interested in this project, please fell free to contact the personnel of
our group. The project leader is dr.drs. L.J.M. Rothkrantz