PropertyNode::pict

Contents

ClassName

PropertyNode

AccessType

public

Name

pict

Declaration

PictureHolder pict

Remark

Examples

EX1

void PropertyNode_pict_ex1()
{
    Tree tr;
    TreeNode trN = tr.AddNode("node1",1);
    
    GraphPage gp;
    gp.Create("origin.otp");
    PictureHolder pict;
    if(page_get_picture(gp,pict))    //Export graph page to picture holder
    {
        trN.pict = pict;    //Assign the picture to tree node
    
        PictureHolder pictCheck;
        pictCheck = trN.pict;
        out_int("picture width = ",pictCheck.GetWidth());    
        out_int("picture height = ",pictCheck.GetHeight());
    }
}

Description

Save a picture in node.

header to Include

origin.h

See Also

Reference