テキストウォーターマークの作成方法を学ぶ

このチュートリアルでは、テキストを作成する方法を学習します。 透かし Aspose.PSD ライブラリを使用して PSD ファイルに追加します。ウォーターマークは、画像を不正使用やコピーから保護するために欠かせない要素です。ウォーターマークを PSD ファイルに追加することで、作業を安全に保つための簡単な方法です。ステップバイステップガイドでは、簡単な手順でカスタムテキストウォーターマークを作成して PSD ファイルに適用できます。

まず、以下を使用して簡単なテキストウォーターマークを作成します。 Aspose.PSD ライブラリ次に、それを PSD ファイルに追加します。ウォーターマークのフォント、サイズ、色を調整する方法と、ウォーターマークを画像内に配置する方法を学習します。


Please check the following code to find how to add the watermark to your PSD image. You can copy code to your IDE and run it.
Load PSD file and add new layer to draw a watermark on.
Copy
string src = "src.psd"; string result = "watermarked.png"; string watermarkText = "MyWatermark"; // Load a PSD file as an image and cast it into PsdImage using (PsdImage psdImage = (PsdImage)Image.Load(src)) { Layer layer = psdImage.AddRegularLayer(); // Export the image into PNG file format. psdImage.Save(result, new PngOptions()); }
1/6