page_get_picture

 

Description

Export graph page to picture holder

Syntax

bool page_get_picture( GraphPageBase & pgSrc, PictureHolder & phDst, LPCSTR lpcszType = NULL, int nRes = 36, bool bSaveInPage = true )

Parameters

pgSrc
[input] source graph page
phDst
[output] picture holder as destination
lpcszType
[input] "BMP"
nRes
[input] resolution of the image
bSaveInPage
[input] if true, save the image and date & time back to graph page.

Return

TRUE if succeed; FALSE otherwise

Examples

EX1

//For this example to run, a graph window named "graph1" must exist in the project.
bool page_get_picture_Ex()
{
                GraphPage   pg("graph1");              
                PictureHolder pictHolder;
                if (!pg.IsValid())
                        return false;
                if(page_get_picture(pg, pictHolder, "EMF", 72, false))
            out_str("Get page success");
                
                return true;
}

Remark

See Also

header to Include

origin.h

Reference