Пример #1
0
 public void DisplayError(string msg)
 {
     _bgLayer.reset();
     _bgLayer.selectGrayPen(255);
     _bgLayer.drawBar(0, 0, _w, _h);
     _bgLayer.selectColorPen(0);
     _bgLayer.drawText(_w / 2, _h / 3, YDisplayLayer.ALIGN.CENTER, "ERROR !");
     _bgLayer.drawText(_w / 2, _h * 2 / 3, YDisplayLayer.ALIGN.CENTER, msg);
 }
Пример #2
0
        //--- (end of YDisplayLayer definitions)
        //--- (YDisplayLayer implementation)

        /**
         * <summary>
         *   Reverts the layer to its initial state (fully transparent, default settings).
         * <para>
         *   Reinitializes the drawing pointer to the upper left position,
         *   and selects the most visible pen color. If you only want to erase the layer
         *   content, use the method <c>clear()</c> instead.
         * </para>
         * </summary>
         * <returns>
         *   <c>0</c> if the call succeeds.
         * </returns>
         * <para>
         *   On failure, throws an exception or returns a negative error code.
         * </para>
         */
        public virtual int reset()
        {
            return(_objptr.reset());
        }