10 #if defined(_MSC_VER) || defined(WIN32) 11 #pragma warning( disable: 4251 ) 12 #ifdef EIENGD_DLL_EXPORTS 13 #define EIENGD_DLL __declspec(dllexport) 15 #define EIENGD_DLL __declspec(dllimport) 18 #define EIENGD_API __stdcall 28 #define EIENGD_FUNC_DECL(ret) EIENGD_DLL ret EIENGD_API 29 #define EIENGD_FUNC_IMPL(ret) ret EIENGD_API 50 Point(
int x = 0,
int y = 0 ): x(x), y(y)
99 return this->alloc( red, green, blue,
true );
104 return this->alloc( red, green, blue, alpha );
127 Image(
int width,
int height,
bool isTrueColor =
true );
135 void create(
int width,
int height );
138 void createTrueColor(
int width,
int height );
154 void copy(
Image & srcImg,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int x,
int y );
156 void copyResized(
Image & srcImg,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int x,
int y,
int width,
int height );
158 void copyResampled(
Image & srcImg,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int x,
int y,
int width,
int height );
168 int getWidth()
const;
171 int getHeight()
const;
179 void setJpegQuality(
long quality );
184 void saveAlpha(
bool isSave );
187 void alphaBlending(
bool isBlend );
190 int colorAt(
int x,
int y )
const;
193 int colorsForIndex(
int index )
const;
196 int colorsTotal()
const;
212 Graphics(
Image & im );
221 void fill(
int x,
int y, Color
const & color );
223 void filledRectangle(
int x,
int y,
int width,
int height, Color
const & color );
225 void arc(
int centerX,
int centerY,
int width,
int height,
int start,
int end, Color
const & color );
227 void line(
int x1,
int y1,
int x2,
int y2, Color
const & color );
229 void rectangle(
int x,
int y,
int width,
int height, Color
const & color );
231 void ellipse(
int centerX,
int centerY,
int width,
int height, Color
const & color );
233 void filledEllipse(
int centerX,
int centerY,
int width,
int height, Color
const & color );
253 Point * boxOut = NULL
262 void stringOut(
int fontInx,
int x,
int y,
winux::String const & str, Color
const & color );
288 #endif //__EIENGD_HPP__
winux::Buffer EncryptAnsiToPng(winux::AnsiString const &data)
加密数据成一个PNG图片
winux::Buffer EncryptBufferToPng(winux::Buffer const &data)
加密数据成一个PNG图片
winux::Buffer DecryptPngToBuffer(winux::Buffer const &pngData)
解密PNG图片为数据
std::basic_string< char > AnsiString
GdError(int errNo, winux::AnsiString const &err)
Color & transparent(int red, int green, int blue)
#define DISABLE_OBJECT_COPY(clsname)
#define EIENGD_FUNC_DECL(ret)
缓冲区,表示内存中一块2进制数据(利用malloc/realloc进行内存分配)
Color & alpha(int red, int green, int blue, int alpha=0)
winux::AnsiString DecryptPngToAnsi(winux::Buffer const &pngData)
解密PNG图片为数据
winux::Buffer EncryptDataToPng(void const *data, winux::uint size)
加密数据成一个PNG图片
std::basic_string< tchar > String