KiCad PCB EDA Suite
Loading...
Searching...
No Matches
orcad_ole.cpp File Reference
#include <sch_io/orcad/orcad_ole.h>
#include <algorithm>
#include <array>
#include <cmath>
#include <cstring>
#include <limits>
#include <string_view>
#include <wx/image.h>
#include <compoundfilereader.h>
#include <paths.h>
#include <libwmf/api.h>
#include <libwmf/gd.h>

Go to the source code of this file.

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)
 

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().