PageSaveAsBitmapExΒΆ

PageSaveAsBitmapEx creates a bitmap with high resolution or WMF file from the given page.

bool = PageSaveAsBitmapEx(hPage, ssFilename, ssType, rsResolution)

Return Value

bool TRUE (1) if the file is created successfully; otherwise FALSE (0).

Parameters

hPage

Identifies the page.

ssFilename

ssFilename is the name of the bitmap file.

ssType

Is one of the following string values:

Value

Meaning

WMF

Metafile Windows 3.1

WMZ

Metafile Compressed

EMF

Enhanced Metafile Win32

EMZ

Enhanced Metafile Compressed

BMP

Bitmap

BMZ

Bitmap Compressed

JPG_LOW

JPEG File Interchange Format, Low Quality

JPG_NORMAL

JPEG File Interchange Format, Normal Quality

JPG_HIGH

JPEG File Interchange Format, High Quality

PNG

High Quality

TIF

Tagged Image File Format

GIF

Graphics Interchange Format

rsResolution

rsResolution sets the bitmap resolution in the range 50 to 1400 DPI.

Comment

In opposite to PageSaveAsBitmap, PageSaveAsBitmapEx can create bitmaps with high resolution.

The function uses the upimage.exe program in the uniplot\program directory to create the bitmaps.

Example

hPage = 34;
PageSaveAsBitmapEx(hPage, "d:/test.png", "PNG", 300)

History

Version

Description

R2018

5.10.1

New

id-806809