Ejemplo n.º 1
0
        private bool writeImageB(int i, byte encodingMode, Array bitmapData)
        {
            bool ret = false; //return false means everything went OK

            if (null != m_tablet)
            {
                if (m_tablet.isConnected())
                {
                    try
                    {
                        m_tablet.writeImage(encodingMode, bitmapData);
                        ret = true;
                    }
                    catch (Exception e)
                    {
                        ret = false;
                        if (DebugInfo.IsDebuggerAttached())
                        {
                            MessageBoxResult result = MessageBox.Show("Error writing Image " + e.ToString(), "Confirmation", MessageBoxButton.OK, MessageBoxImage.Question);
                        }
                    }
                }
            }
            return(ret);
        }
        private void clearScreen()
        {
            // note: There is no need to clear the tablet screen prior to writing an image.

            if (m_useEncryption)
            {
                m_tablet.endCapture();
            }

            m_tablet.writeImage((byte)m_encodingMode, m_bitmapData);

            if (m_penDataOptionMode == (int)PenDataOptionMode.PenDataOptionMode_TimeCountSequence)
            {
                m_penTimeData.Clear();
            }
            else
            {
                m_penData.Clear();
            }

            if (m_useEncryption)
            {
                m_tablet.startCapture(0xc0ffee);
            }

            m_isDown = 0;
            this.Invalidate();
        }
Ejemplo n.º 3
0
        private void clearScreen()
        {
            // note: There is no need to clear the tablet screen prior to writing an image.
            m_tablet.writeImage((byte)m_encodingMode, m_bitmapData);

            m_penData.Clear();
            m_isDown = 0;
            this.Invalidate();
        }