示例#1
0
        public int Scale(int dstWidth, int dstHeight, out ExImage dstImg)
        {
            var ans = IntPtr.Zero;
            var ret = ExAPI._img_scale(m_hImg, dstWidth, dstHeight, out ans);

            dstImg = new ExImage(ans);
            return(ret);
        }
示例#2
0
        public int GetThumbnail(int thumbWidth, int thumbHeight, out ExImage ImgThumbnail)
        {
            var ans = IntPtr.Zero;
            var ret = ExAPI._img_getthumbnail(m_hImg, thumbWidth, thumbHeight, out ans);

            ImgThumbnail = new ExImage(ans);
            return(ret);
        }
示例#3
0
 public ExBrush(ExImage img)
 {
     m_hBrush = (IntPtr)ExAPI._brush_createfromimg(img.Handle);
 }
示例#4
0
 public bool DrawRect(ExImage img, float dstLeft, float dstTop, float dstRight, float dstBottom, float srcLeft, float srcTop, float srcRight, float srcBottom, int alpha)
 {
     return(ExAPI._canvas_drawimagerectrect(m_hCanvas, img.Handle, dstLeft, dstTop, dstRight, dstBottom, srcLeft, srcTop, srcRight, srcBottom, alpha));
 }
示例#5
0
 public bool DrawRect(ExImage img, float left, float top, float right, float bottom, int alpha)
 {
     return(ExAPI._canvas_drawimagerect(m_hCanvas, img.Handle, left, top, right, bottom, alpha));
 }
示例#6
0
 public bool DrawImage(ExImage img, float dstLeft, float dstTop, float dstRight, float dstBottom, float srcLeft, float srcTop, float srcRight, float srcBottom, float gridPaddingLeft, float gridPaddingTop, float gridPaddingRight, float gridPaddingBottom, int dwFlags, int dwAlpha)
 {
     return(ExAPI._canvas_drawimagefromgrid(m_hCanvas, img.Handle, dstLeft, dstTop, dstRight, dstBottom, srcLeft, srcTop, srcRight, srcBottom, gridPaddingLeft, gridPaddingTop, gridPaddingRight, gridPaddingBottom, dwFlags, dwAlpha));
 }
示例#7
0
 public bool DrawImage(ExImage img, float left, float top, int alpha)
 {
     return(ExAPI._canvas_drawimage(m_hCanvas, img.Handle, left, top, alpha));
 }