5#include "appcore/printertemplate/EMPrinterTemplate.h"
37 enum Metrics { Pixel = 0, Milimeter = 1, Centimeter = 2 };
43 virtual long SetSize(
float width,
float height );
61 virtual long SetFont( std::string fontName,
long size,
bool bold,
bool italic);
62 virtual long SetFont( std::string fontName,
long size,
bool bold,
bool italic,
bool underline );
63 virtual long DrawText(
float x,
float y,
long width,
long height, std::string text,
Alignement align,
short rotation = 0 );
64 virtual long DrawBox(
float x1,
float y1,
float x2,
float y2 );
65 virtual long DrawEllipse(
float x,
float y,
float w,
float h );
66 virtual long DrawLine(
float x1,
float y1,
float x2,
float y2 );
67 virtual long DrawPicture(
float x,
float y, std::string fileName );
68 virtual long DrawPicture(
float x,
float y, std::string fileName,
long width,
long height );
79 virtual long DrawQRCode(
long x,
long y,
long width,
long height, std::string data );
Alignement
Definition EImageIface.h:8
@ MiddleLeft
Definition EImageIface.h:12
@ BottomRight
Definition EImageIface.h:17
@ MiddleRight
Definition EImageIface.h:14
@ BottomCenter
Definition EImageIface.h:16
@ Left
Definition EImageIface.h:9
@ Center
Definition EImageIface.h:10
@ Right
Definition EImageIface.h:11
@ BottomLeft
Definition EImageIface.h:15
@ MiddleCenter
Definition EImageIface.h:13
#define EMPRINTERTEMPLATE_API
Definition EMPrinterTemplate.h:9
Definition EImageIface.cpp:8
virtual float GetTextHeightMM()
virtual long DrawEllipse(float x, float y, float w, float h)
virtual long GetPositionX()
virtual long SetDrawedObjectColors(int borderColorIdx, int fillColorIdx)
virtual FontEncoding GetFontEncoding()
std::string GetDefaultPath() const
virtual long SetCurrentPos(float x, float y)
virtual long DrawPicture(float x, float y, std::string fileName)
virtual long DrawText(float x, float y, long width, long height, std::string text, Alignement align, short rotation=0)
virtual long SetBkColor(int colorIdx)
Metrics
Definition EImageIface.h:37
virtual long SetMetrics(Metrics metric)
FontEncoding
Definition EImageIface.h:38
void SetDefaultPath(const std::string &defaultPath)
virtual long DrawLine(float x1, float y1, float x2, float y2)
virtual long DrawBox(float x1, float y1, float x2, float y2)
virtual long SetTextColor(int colorIdx)
virtual long CalculateMetrics()
virtual long DrawQRCode(long x, long y, long width, long height, std::string data)
DrawQRCode.
virtual long SetFont(std::string fontName, long size, bool bold, bool italic)
virtual long SetFont(std::string fontName, long size, bool bold, bool italic, bool underline)
virtual Metrics GetMetrics()
virtual long DrawPicture(float x, float y, std::string fileName, long width, long height)
virtual long GetTextWidth(std::string text)
virtual long SetAlign(Alignement align)
virtual long GetTextHeight()
virtual long GetPositionY()
virtual long SetFontEncoding(FontEncoding encode)
virtual long SetSize(float width, float height)
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7