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)
98 return this->alloc( red, green, blue,
true );
104 return this->alloc( red, green, blue, alpha );
128 Image(
int width,
int height,
bool isTrueColor =
true );
136 void create(
int width,
int height );
139 void createTrueColor(
int width,
int height );
158 void copy(
Image & srcImg,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int x,
int y );
161 void copyResized(
Image & srcImg,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int x,
int y,
int width,
int height );
164 void copyResampled(
Image & srcImg,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int x,
int y,
int width,
int height );
174 int getWidth()
const;
177 int getHeight()
const;
185 void setJpegQuality(
long quality );
190 void saveAlpha(
bool isSave );
193 void alphaBlending(
bool isBlend );
196 int colorAt(
int x,
int y )
const;
199 int colorsForIndex(
int index )
const;
202 int colorsTotal()
const;
217 Graphics(
Image & im );
226 void fill(
int x,
int y, Color
const & color );
229 void filledRectangle(
int x,
int y,
int width,
int height, Color
const & color );
232 void filledEllipse(
int centerX,
int centerY,
int width,
int height, Color
const & color );
235 void arc(
int centerX,
int centerY,
int width,
int height,
int start,
int end, Color
const & color );
238 void line(
int x1,
int y1,
int x2,
int y2, Color
const & color );
241 void rectangle(
int x,
int y,
int width,
int height, Color
const & color );
244 void ellipse(
int centerX,
int centerY,
int width,
int height, Color
const & color );
264 Point * boxOut = NULL
273 void stringOut(
int fontInx,
int x,
int y,
winux::String const & str, Color
const & color );
303 #endif //__EIENGD_HPP__ XString< char > AnsiString
Mixed const mxNull
Mixed(MT_NULL)常量对象
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图片