PropertyNode
public
pict
PictureHolder pict
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()); } }
Save a picture in node.
origin.h