SaveCADtoPNG

  Functions >

SaveCADtoPNG

Previous pageReturn to chapter overviewNext page

The SaveCADtoPNG function saves currently displayed layout to the PNG file format with sizes predefined in R member of the CADDRAW structure.

 

Syntax:

 

int SaveCADtoPNG(

  HANDLE hObject,

  LPCADDRAW lpcd,

  LPCSTR lpFileName

);

 

 

Parameters:

 

hObject

Identifies the CADImage object handle.

lpcd

Points to the CADDRAW structure containing the device context, logical coordinates, drawing format etc.

lpFileName

Points to a null-terminated string that specifies the name of the output PNG file.

 

 

Return Value:

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastErrorCAD.

 

 

See Also

CADCreate  | SaveCADtoBitmap  | SaveCADtoGif  | SaveCADtoJpeg


© 2003-2024 CADSoftTools

Go to CAD DLL