Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEcopysvgtohglobal

DWORD  PEcopysvgtohglobal(hObject, lpPoint, lphGlobal, bCompress);

 

HWND 

hObject

The handle returned from PEcreate.

POINT* 

lpPoint

Pointer to POINT struct holding size.

HGLOBAL* 

lphGlobal

Handle to destination global object.

BOOL 

bCompress

TRUE to compress output.

 

This function stores an SVG into a global memory object and returns the size of the object.  This can be used within low-level server control logic to stream SVG content to a browser, or just get the bits for an SVG 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 number of pixels wide and POINT.y stores the number of pixels high. The dimensions must be between 32 and 2000 pixels. To insure image quality, the aspect ratio (width/height) must be between 0.333 and 10.0.

 

Returns

The amount of binary data stored.

 

Comments

This function is used internally to enable the .NET and ActiveX server controls to stream SVG states to the browser.

 

.NET developers, see PeFunction.Image.SvgToStream

 

OCX developers, see the SVGToStream method.

 

See Also: PEserializetohglobal, PEcopyjpegtohglobal

 

See Also: SvgXmlParms, SvgXmlnsParms