Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEcopysvgtofile

BOOL PEcopysvgtofile (hObject, lpPoint, lpszFilename, bCompress)

 

HWND 

hObject

The handle returned from PEcreate.

POINT* 

lpPoint

Pointer to POINT struct holding size.

WCHAR* 

lpszFilename

Pointer to a null-terminated string naming file.

BOOL 

bCompress

If TRUE, svg data is compressed.

 

This function places the current image, in the form of an SVG, into a file named by lpszFilename. If bCompress is TRUE, the file is built compressed.

 

The SVG format is a vector based image definition format similar to the metafile format. Unicode strings are only supported if Unicode fonts are used to build chart. These same Unicode fonts must be present on any target system.

 

ProEssentials adds SVG support at a very basic level. We do not support interactivity, or other advanced features SVG can potentially offer. Its main advantage is passing large high resolution images via small bandwidth (many charts will only take 2K in data independent of size of image.)

 

Setting the RenderEngine to Gdi/Hybrid versus GdiPlus will have an impact on end results as relates to potential alpha blending.

Parameter

Description

lpPoint

Pointer to a POINT struct where POINT.x stores the width and POINT.y stores the height. The dimensions are in pixels. The dimensions must not equal zero. To insure image quality, the aspect ratio (width/height) must be between 0.333 and 10.0

lpszFilename

This pointer must identify a valid filename.

bCompress

TRUE, file is compressed. FALSE, file is not compressed and human readable.

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

.NET developers, see PeFunction.Image.SvgToFile

 

OCX developers, see the PEcopysvgtofile method.

 

VCL developers, use PEcopysvgtofile as defined in PEGRPAPI.PAS.

 

See Also: SvgXmlParms, SvgXmlnsParms