diff --git a/API_Image.cpp b/API_Image.cpp new file mode 100644 index 0000000..67375bf --- /dev/null +++ b/API_Image.cpp @@ -0,0 +1,30 @@ +//---------------------------------------------------------------------------- +// EgalTech 2017-2017 +//---------------------------------------------------------------------------- +// File : API_Image.cpp Data : 27.12.17 Versione : 1.8l3 +// Contenuto : Funzioni gestione immagini per API. +// +// +// +// Modifiche : 27.12.17 DS Creazione modulo. +// +// +//---------------------------------------------------------------------------- + +//--------------------------- Include ---------------------------------------- +#include "stdafx.h" +#include "API.h" +#include "/EgtDev/Include/EInAPI.h" +#include "/EgtDev/Include/EXeExecutor.h" +#include "/EgtDev/Include/EgtStringConverter.h" + +using namespace std ; + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetImagePixels( const wchar_t* wsFile, int* pnPixelX, int* pnPixelY) +{ + if ( pnPixelX == nullptr || pnPixelY == nullptr) + return false ; + return ( ExeGetImagePixels( wstrztoA( wsFile), *pnPixelX, *pnPixelY) ? TRUE : FALSE ) ; +} diff --git a/API_Picture.cpp b/API_Picture.cpp new file mode 100644 index 0000000..794e6fb --- /dev/null +++ b/API_Picture.cpp @@ -0,0 +1,30 @@ +//---------------------------------------------------------------------------- +// EgalTech 2017-2017 +//---------------------------------------------------------------------------- +// File : API_Picture.cpp Data : 27.12.17 Versione : 1.8l3 +// Contenuto : Funzioni gestione immagini per API. +// +// +// +// Modifiche : 27.12.17 DS Creazione modulo. +// +// +//---------------------------------------------------------------------------- + +//--------------------------- Include ---------------------------------------- +#include "stdafx.h" +#include "API.h" +#include "/EgtDev/Include/EInAPI.h" +#include "/EgtDev/Include/EXeExecutor.h" +#include "/EgtDev/Include/EgtStringConverter.h" + +using namespace std ; + +//----------------------------------------------------------------------------- +int +__stdcall EgtAddPicture( int nParentId, const wchar_t* wsName, const wchar_t* wsFile, + double dDimX, double dDimY, int nRefType) +{ + return ExeAddPicture( nParentId, wstrztoA( wsName), wstrztoA( wsFile), + dDimX, dDimY, nRefType) ; +} diff --git a/EgtInterface.rc b/EgtInterface.rc index 285bb66..532a342 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ diff --git a/EgtInterface.vcxproj b/EgtInterface.vcxproj index 102713c..995c0e5 100644 --- a/EgtInterface.vcxproj +++ b/EgtInterface.vcxproj @@ -226,11 +226,13 @@ copy $(TargetPath) \EgtProg\Dll64 + + diff --git a/EgtInterface.vcxproj.filters b/EgtInterface.vcxproj.filters index c8a5f10..8a0061d 100644 --- a/EgtInterface.vcxproj.filters +++ b/EgtInterface.vcxproj.filters @@ -119,6 +119,12 @@ File di origine\API + + File di origine\API + + + File di origine\API +