示例#1
0
        public int SendPicture(int width = 0, int height = 0, string picture = null)
        {
            int ret = 0;

            if (0 == m_nCommType)
            {
                ret = CP5200.CP5200_RS232_SendPicture(m_nCardID, 0, 0, 0, width, height, Marshal.StringToHGlobalAnsi(picture), 1, 0, 3, 0);
            }
            else
            {
                ret = CP5200.CP5200_Net_SendPicture(m_nCardID, 0, 0, 0, width, height, Marshal.StringToHGlobalAnsi(picture), 1, 0, 3, 0);
            }

            return(ret);
        }
示例#2
0
        // Create image temporary & send image to device
        public int SendImg(TextImage img, int effect, int windowNumber)
        {
            m_nWindowNo = windowNumber;
            int ret = 0;

            if (0 == m_nCommType)
            {
                ret = CP5200.CP5200_RS232_SendPicture(m_nCardID, m_nWindowNo, 0, 0, img.Width, img.Height,
                                                      Marshal.StringToHGlobalAnsi(img.path), 0, effect, 3, 0);
            }
            else
            {
                ret = CP5200.CP5200_Net_SendPicture(m_nCardID, m_nWindowNo, 0, 0, img.Width, img.Height,
                                                    Marshal.StringToHGlobalAnsi(img.path), 0, effect, 3, 0);
            }
            return(ret);
        }