KiCad PCB EDA Suite
Loading...
Searching...
No Matches
orcad_ole.h File Reference
#include <cstdint>
#include <vector>

Go to the source code of this file.

Classes

struct  ORCAD_OLE_PREVIEW
 

Enumerations

enum class  ORCAD_OLE_PREVIEW_TYPE { NONE , BMP , DIB , WMF }
 

Functions

ORCAD_OLE_PREVIEW OrcadExtractOlePreview (const std::vector< uint8_t > &aPayload)
 
bool OrcadRenderWmf (const std::vector< uint8_t > &aWmf, int aMaxWidth, int aMaxHeight, wxImage &aImage)
 

Enumeration Type Documentation

◆ ORCAD_OLE_PREVIEW_TYPE

enum class ORCAD_OLE_PREVIEW_TYPE
strong
Enumerator
NONE 
BMP 
DIB 
WMF 

Definition at line 20 of file orcad_ole.h.

Function Documentation

◆ OrcadExtractOlePreview()

ORCAD_OLE_PREVIEW OrcadExtractOlePreview ( const std::vector< uint8_t > & aPayload)

Definition at line 78 of file orcad_ole.cpp.

References BMP, DIB, and WMF.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and ORCAD_CONVERTER::placeBitmap().

◆ OrcadRenderWmf()

bool OrcadRenderWmf ( const std::vector< uint8_t > & aWmf,
int aMaxWidth,
int aMaxHeight,
wxImage & aImage )

Definition at line 146 of file orcad_ole.cpp.

References PATHS::GetStockDataPath(), and scale.

Referenced by ORCAD_CONVERTER::placeBitmap().