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)
100 return this->alloc( red, green, blue,
true );
106 return this->alloc( red, green, blue, alpha );
129 Image(
int width,
int height,
bool isTrueColor =
true );
137 void create(
int width,
int height );
140 void createTrueColor(
int width,
int height );
159 void copy(
Image & srcImg,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int x,
int y );
162 void copyResized(
Image & srcImg,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int x,
int y,
int width,
int height );
165 void copyResampled(
Image & srcImg,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int x,
int y,
int width,
int height );
175 int getWidth()
const;
178 int getHeight()
const;
186 void setJpegQuality(
long quality );
191 void saveAlpha(
bool isSave );
194 void alphaBlending(
bool isBlend );
197 int colorAt(
int x,
int y )
const;
200 int colorsForIndex(
int index )
const;
203 int colorsTotal()
const;
219 Graphics(
Image & im );
228 void fill(
int x,
int y, Color
const & color );
231 void filledRectangle(
int x,
int y,
int width,
int height, Color
const & color );
234 void filledEllipse(
int centerX,
int centerY,
int width,
int height, Color
const & color );
237 void arc(
int centerX,
int centerY,
int width,
int height,
int start,
int end, Color
const & color );
240 void line(
int x1,
int y1,
int x2,
int y2, Color
const & color );
243 void rectangle(
int x,
int y,
int width,
int height, Color
const & color );
246 void ellipse(
int centerX,
int centerY,
int width,
int height, Color
const & color );
266 Point * boxOut = NULL
275 void stringOut(
int fontInx,
int x,
int y,
winux::String const & str, Color
const & color );
301 #endif //__EIENGD_HPP__ XString< char > AnsiString
winux::Buffer EncryptAnsiToPng(winux::AnsiString const &data)
加密数据成一个PNG图片
winux::Buffer EncryptBufferToPng(winux::Buffer const &data)
加密数据成一个PNG图片
winux::Buffer DecryptPngToBuffer(winux::Buffer const &pngData)
解密PNG图片为数据
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)
缓冲区,表示内存中一块二进制数据(利用malloc/realloc进行内存分配)
Color & alpha(int red, int green, int blue, int alpha=0)
分配带alpha通道的颜色
winux::AnsiString DecryptPngToAnsi(winux::Buffer const &pngData)
解密PNG图片为数据
winux::Buffer EncryptDataToPng(void const *data, winux::uint size)
加密数据成一个PNG图片