コード例 #1
0
ファイル: WaterForm.cs プロジェクト: Dason1986/Lib
        public void Builder(string sourceImg, string waterImg)
        {
            _builder.SetSourceImage(sourceImg);
            if (_builder is WaterImageBuilderByText == false)
                _builder.SetWaterImage(waterImg);

            var opetion = new WaterImageTileOption
            {
                Offset = new Point((int)NumOffsetX.Value, (int)NumOffsetY.Value),
                Space = new Size((int)NumspaceX.Value, (int)NumspaceY.Value),
                Opacity = (float)NumOpacity.Value / 100
            };
            _builder.SetOpetion(opetion);
            PicTarget.Image = _builder.ProcessBitmap();
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 protected override void InitOption()
 {
     if (_opetion == null) _opetion = new WaterImageTileOption();
 }