Example #1
0
        public static Process CreateProcessScrcpy(ScrcpyArguments arguments, string serial = "")
        {
            string strArguments = arguments.ToString();

            if (!string.IsNullOrEmpty(serial))
            {
                // set serial
                strArguments += string.Format(Constants.SCRCPY_ARG_SERIAL, serial);
            }
            return(CreateProcessScrcpy(strArguments));
        }
Example #2
0
        public object Clone()
        {
            ScrcpyArguments clone = new ScrcpyArguments(this._cropWidth, this._cropHeight, this._cropX, this._cropY);

            clone.NoControl     = this.NoControl;
            clone.TurnScreenOff = this.TurnScreenOff;
            clone.MaxSize       = this.MaxSize;
            clone.Bitrate       = this.Bitrate;
            //clone.Serial = this.Serial;
            return(clone);
        }