Logo Search packages:      
Sourcecode: inkscape version File versions

void org::siox::SioxImage::assign ( const SioxImage other  )  [private]

Assign values to that of another

Definition at line 566 of file siox.cpp.

References cmdata, height, pixdata, valid, and width.

Referenced by operator=(), and SioxImage().

    if (pixdata) delete[] pixdata;
    if (cmdata)  delete[] cmdata;
    valid     = other.valid;
    width     = other.width;
    height    = other.height;
    imageSize = width * height;
    pixdata   = new unsigned int[imageSize];
    cmdata    = new float[imageSize];
    for (unsigned long i=0 ; i<imageSize ; i++)
        pixdata[i] = other.pixdata[i];
        cmdata[i]  = other.cmdata[i];

Generated by  Doxygen 1.6.0   Back to index