Logo Search packages:      
Sourcecode: inkscape version File versions

void org::siox::SioxImage::setPixel ( unsigned int  x,
unsigned int  y,
unsigned int  pixval 
) [virtual]

Set a pixel at the x,y coordinates to the given value. If the coordinates are out of range, do nothing.

Definition at line 422 of file siox.cpp.

References error(), and pixdata.

Referenced by SioxImage().

    if (x >= width || y >= height)
        error("setPixel: out of bounds (%d,%d)/(%d,%d)",
                   x, y, width, height);
    unsigned long offset = width * y + x;
    pixdata[offset] = pixval; 

Generated by  Doxygen 1.6.0   Back to index