• 大小: 0.06M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 水印  图片  文字  C#  c  

资源简介

C# 给图片加上文字或图片水印

资源截图

代码片段和文件信息

//Download by http://www.NewXing.com
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PictureMaskTest
{
    public partial class Form1 : Form
    {
        string fileName = Application.StartupPath + @“\Popup.bmp“;
        public Form1()
        {
            InitializeComponent();

            BackgroundImageLayout = ImageLayout.Center;
            BackgroundImage = ImageWatermark.CreateWatermark(
                fileName
                “水印文字~嘎嘎!“
                null
                Color.Chocolate
                0.5F
                ContentAlignment.BottomRight);
        }

        private void button1_Click(object sender Even

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1102  2011-03-25 15:29  Form1.cs

     文件       2397  2011-03-25 15:28  Form1.Designer.cs

     文件       5814  2009-07-10 12:45  Form1.resx

     文件       9109  2011-03-25 15:28  ImageWatermark.cs

     文件       3282  2009-07-10 17:25  PictureMaskTest.csproj

     文件        512  2011-03-25 15:28  Program.cs

    .......      8124  2007-08-27 23:36  bin\Debug\Logo.jpg

    .......     24576  2009-07-10 17:25  bin\Debug\PictureMaskTest.exe

    .......     30208  2009-07-10 17:25  bin\Debug\PictureMaskTest.pdb

    .......      5632  2005-11-11 22:25  bin\Debug\PictureMaskTest.vshost.exe

    .......    373554  2009-07-09 10:49  bin\Debug\Popup.bmp

    .......       842  2009-07-10 17:10  obj\Debug\PictureMaskTest.csproj.GenerateResource.Cache

    .......     24576  2009-07-10 17:25  obj\Debug\PictureMaskTest.exe

    .......       180  2009-07-10 17:10  obj\Debug\PictureMaskTest.Form1.resources

    .......     30208  2009-07-10 17:25  obj\Debug\PictureMaskTest.pdb

    .......       180  2009-07-10 17:10  obj\Debug\PictureMaskTest.Properties.Resources.resources

    .......       324  2009-07-10 17:25  obj\PictureMaskTest.csproj.FileList.txt

     文件       1252  2011-03-25 15:28  Properties\AssemblyInfo.cs

     文件       2923  2011-03-25 15:28  Properties\Resources.Designer.cs

    .......      5612  2009-07-10 11:46  Properties\Resources.resx

     文件       1137  2011-03-25 15:28  Properties\Settings.Designer.cs

    .......       249  2009-07-10 11:46  Properties\Settings.settings

     目录          0  2009-07-10 16:26  obj\Debug\Refactor

     目录          0  2009-07-10 11:46  obj\Debug\TempPE

     目录          0  2009-07-10 11:46  bin\Debug

     目录          0  2009-07-10 11:46  obj\Debug

     目录          0  2009-07-10 11:46  bin

     目录          0  2009-07-10 11:46  obj

     目录          0  2009-07-10 11:46  Properties

----------- ---------  ---------- -----  ----

............此处省略2个文件信息

评论

共有 条评论