2.2.4.34.21 PageBase::SaveBitmap

Description

Save a Project page to a bitmap. Default size is 200.

Syntax

BOOL SaveBitmap( LPCSTR lpcszBmpFile, int nBmpSize = 200 )

Parameters

lpcszBmpFile
[input]Full path of bitmap file to save to
nBmpSize
[input]Size of the bitmap.

Return

Returns TRUE on success and FALSE on failure.

Examples

EX1

int PageBase_SaveBitmap_ex1()
{
    // Make sure at least one graph page exists.
    GraphPage pg = Project.GraphPages(0);
    if( !pg )
    {
        out_str("Invalid page!\n");
        return 0;
    }
    // For this to succeed the folder c:\ must exist
    BOOL bOK = pg.SaveBitmap("c:\\Origin Graph.BMP");
    out_int("OK = ", bOK);
    return 0;
}

Remark

See Also

PageBase::SaveTemplate, PageBase::SaveEMF

Header to Included

origin.h