手机watermark文件夹

手机watermark文件夹,第1张

完全可以删除,只是软件戳记。记录的是某个时刻

比如象图片这样

路径,如:

比如象图片这样

路径,如:

\camera\.watermark\

我就是直接删除的

1:将需要加水印的所有图片放在同一个文件下,也就是我们现在所说的"源文件夹",如"1108新品" 2:用PHOTOSHOP打开一张"源文件夹"内的图片进行 *** 作。 3:点击"动作"面板 4:单击动作面板上的倒数第二个按钮"创建新动作" 5:给新动作命名,如"水印"(主要是为了方便后面的工作) 6.再点击"动作"面板上的第二个按钮"开始记录",此时此按钮会变成红色,然后对此图片的所有 *** 作步骤将都会被记录下来哦~~ 7.再输入想要加的水印字样,如图示 8.将文字的透明度进行更改,形成水印的效果。 9.点击"图层"菜单下的"拼合图层",这样可以保证在批量处理图片的时候水印的距离是固定的,不会动态的改变。 10.处理完毕之后,再点击"文件"菜单下的"存储为",将文件存到一个新建的目标文件夹下,如"1108新品1",并且不需要改文件名哦,这样便于清楚的知道文件加水印的情况。 11.再点击"动作"面板上的第一个按钮"停止播放/记录",这样整个动作过程已经记录完毕了哦 12.将目标文件夹下刚刚保存的那个文件删除 13.再点击"文件"菜单下的"自动"--"批处理" 14.非常关键的一步,设置批处理面板选项。如下图所示,在动作选项选择刚才创建的"水印";源文件夹和目标文件夹分别选择之前设定好的文件夹即可。另外一定要选择最下面框框住的部分:覆盖动作"存储为"命令,这样在批处理的时候PHOTOSHOP会自动的保存所有处理了的图片到目标文件夹中。而不需要我们再手动的确认了哦,非常的方便:) 好了,,处理完毕后,大家可以到目标文件夹中看到所有已经加上水印的图片了哦,是不是很方便很简单,,呵呵祝大家都能得心应手的打理好自己奉献了好多好多心思的小店,也能不断的完善,漂亮,生意兴隆!!(*^__^*) .......

import com.lowagie.text.pdf.PdfStamper

iTextSharp的确好用,但我加水印一般在初始化的时候写两行就行了,不需要这么麻烦,只是图片得自己做淡一些

if(System.IO.File.Exists("./waterMark/waterMark.JPG") == false)

MessageBox.Show("waterMark加载失败,请确定文件waterMark.JPG放在waterMark文件夹下!")

else

{

Watermark watermark = new Watermark(iTextSharp.text.Image.getInstance("./waterMark/waterMark.JPG"), wm_left, wm_top)

document.Add(watermark)

}

wm_left, wm_top是水印的位置,从第几页开始显示水印就把上面的代码加到第几页

补充:watermark是iTextSharp里的,不需要其他引用

iTextSharp.text.watermark 检查是否输入正确

.\itextsharp-0.04-src\iTextSharp\text\watermark.cs 。。。。。。

或者你可以搜索一下?

代码全文:

using System

/*

* $Id: Watermark.cs,v 1.3 2003/05/15 01:49:58 geraldhenson Exp $

* $Name: $

*

* Copyright 2000, 2001, 2002 by Bruno Lowagie.

*

* The contents of this file are subject to the Mozilla Public License Version 1.1

* (the "License")you may not use this file except in compliance with the License.

* You may obtain a copy of the License at http://www.mozilla.org/MPL/

*

* Software distributed under the License is distributed on an "AS IS" basis,

* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License

* for the specific language governing rights and limitations under the License.

*

* The Original Code is 'iText, a free JAVA-PDF library'.

*

* The Initial Developer of the Original Code is Bruno Lowagie. Portions created by

* the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie.

* All Rights Reserved.

* Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer

* are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved.

*

* Contributor(s): all the names of the contributors are added in the source code

* where applicable.

*

* Alternatively, the contents of this file may be used under the terms of the

* LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the

* provisions of LGPL are applicable instead of those above. If you wish to

* allow use of your version of this file only under the terms of the LGPL

* License and not to allow others to use your version of this file under

* the MPL, indicate your decision by deleting the provisions above and

* replace them with the notice and other provisions required by the LGPL.

* If you do not delete the provisions above, a recipient may use your version

* of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE.

*

* This library is free softwareyou can redistribute it and/or modify it

* under the terms of the MPL as stated above or under the terms of the GNU

* Library General Public License as published by the Free Software Foundation

* either version 2 of the License, or any later version.

*

* This library is distributed in the hope that it will be useful, but WITHOUT

* ANY WARRANTYwithout even the implied warranty of MERCHANTABILITY or FITNESS

* FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more

* details.

*

* If you didn't download this code from the following link, you should check if

* you aren't using an obsolete version:

* http://www.lowagie.com/iText/

*/

namespace iTextSharp.text {

/// <summary>

/// A <CODE>Watermark</CODE>is a graphic element (GIF or JPEG)

/// that is shown on a certain position on each page.

/// </summary>

/// <seealso cref="T:iTextSharp.text.Element"/>

/// <seealso cref="T:iTextSharp.text.Jpef"/>

/// <seealso cref="T:iTextSharp.text.Gif"/>

/// <seealso cref="T:iTextSharp.text.Png"/>

public class Watermark : Image, IElement {

// membervariables

/// <summary>This is the offset in x-direction of the Watermark. </summary>

private float offsetX = 0

/// <summary>This is the offset in y-direction of the Watermark. </summary>

private float offsetY = 0

// Constructors

/// <summary>

/// Constructs a <CODE>Watermark</CODE>-object, using an <CODE>Image</CODE>.

/// </summary>

/// <param name="image">an <CODE>Image</CODE>-object</param>

/// <param name="offsetX">the offset in x-direction</param>

/// <param name="offsetY">the offset in y-direction</param>

public Watermark(Image image, float offsetX, float offsetY) : base(image) {

this.offsetX = offsetX

this.offsetY = offsetY

}

// implementation of the Element interface

/// <summary>

/// Gets the type of the text element.

/// </summary>

/// <value>a type</value>

public override int Type {

get {

return type

}

}

// methods to retrieve information

/// <summary>

/// Returns the offset in x direction.

/// </summary>

/// <value>a value</value>

public float OffsetX {

get {

return offsetX

}

}

/// <summary>

/// Returns the offset in y direction.

/// </summary>

/// <value>an offset</value>

public float OffsetY {

get {

return offsetY

}

}

}

}

恩,给你发过去了,带有word教程和示例代码,国庆快乐


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/tougao/12091688.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-21
下一篇 2023-05-21

发表评论

登录后才能评论

评论列表(0条)

保存