Aspose::Words::LowCode::Watermarker::SetImage method

Contents
[ ]

Watermarker::SetImage(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, Aspose::Words::SaveFormat, const System::SharedPtr<System::Drawing::Image>&, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&) method

Adds an image watermark into the document from streams with options.

static void Aspose::Words::LowCode::Watermarker::SetImage(const System::SharedPtr<System::IO::Stream> &inputStream, const System::SharedPtr<System::IO::Stream> &outputStream, Aspose::Words::SaveFormat saveFormat, const System::SharedPtr<System::Drawing::Image> &watermarkImage, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions> &options=System::ExplicitCast<Aspose::Words::ImageWatermarkOptions>(nullptr))
ParameterTypeDescription
inputStreamconst System::SharedPtr<System::IO::Stream>&The input stream.
outputStreamconst System::SharedPtr<System::IO::Stream>&The output stream.
saveFormatAspose::Words::SaveFormatThe save format.
watermarkImageconst System::SharedPtr<System::Drawing::Image>&Image that is displayed as a watermark.
optionsconst System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&Defines additional options for the image watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), only the first page of the output will be saved to the specified stream.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF to the specified stream.

See Also

Watermarker::SetImage(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, Aspose::Words::SaveFormat, const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&) method

Adds an image watermark into the document from streams with options.

static void Aspose::Words::LowCode::Watermarker::SetImage(const System::SharedPtr<System::IO::Stream> &inputStream, const System::SharedPtr<System::IO::Stream> &outputStream, Aspose::Words::SaveFormat saveFormat, const System::SharedPtr<System::IO::Stream> &watermarkImageStream, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions> &options=System::ExplicitCast<Aspose::Words::ImageWatermarkOptions>(nullptr))
ParameterTypeDescription
inputStreamconst System::SharedPtr<System::IO::Stream>&The input stream.
outputStreamconst System::SharedPtr<System::IO::Stream>&The output stream.
saveFormatAspose::Words::SaveFormatThe save format.
watermarkImageStreamconst System::SharedPtr<System::IO::Stream>&Image stream that is displayed as a watermark.
optionsconst System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&Defines additional options for the image watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), only the first page of the output will be saved to the specified stream.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF to the specified stream.

See Also

Watermarker::SetImage(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Words::Saving::SaveOptions>&, const System::SharedPtr<System::Drawing::Image>&, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&) method

Adds an image watermark into the document from streams with options.

static void Aspose::Words::LowCode::Watermarker::SetImage(const System::SharedPtr<System::IO::Stream> &inputStream, const System::SharedPtr<System::IO::Stream> &outputStream, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &saveOptions, const System::SharedPtr<System::Drawing::Image> &watermarkImage, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions> &options=System::ExplicitCast<Aspose::Words::ImageWatermarkOptions>(nullptr))
ParameterTypeDescription
inputStreamconst System::SharedPtr<System::IO::Stream>&The input stream.
outputStreamconst System::SharedPtr<System::IO::Stream>&The output stream.
saveOptionsconst System::SharedPtr<Aspose::Words::Saving::SaveOptions>&The save options.
watermarkImageconst System::SharedPtr<System::Drawing::Image>&Image that is displayed as a watermark.
optionsconst System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&Defines additional options for the image watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), only the first page of the output will be saved to the specified stream.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF to the specified stream.

See Also

Watermarker::SetImage(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Words::Saving::SaveOptions>&, const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&) method

Adds an image watermark into the document from streams with options.

static void Aspose::Words::LowCode::Watermarker::SetImage(const System::SharedPtr<System::IO::Stream> &inputStream, const System::SharedPtr<System::IO::Stream> &outputStream, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &saveOptions, const System::SharedPtr<System::IO::Stream> &watermarkImageStream, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions> &options=System::ExplicitCast<Aspose::Words::ImageWatermarkOptions>(nullptr))
ParameterTypeDescription
inputStreamconst System::SharedPtr<System::IO::Stream>&The input stream.
outputStreamconst System::SharedPtr<System::IO::Stream>&The output stream.
saveOptionsconst System::SharedPtr<Aspose::Words::Saving::SaveOptions>&The save options.
watermarkImageStreamconst System::SharedPtr<System::IO::Stream>&Image stream that is displayed as a watermark.
optionsconst System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&Defines additional options for the image watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), only the first page of the output will be saved to the specified stream.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF to the specified stream.

See Also

Watermarker::SetImage(const System::String&, const System::String&, Aspose::Words::SaveFormat, const System::String&, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&) method

Adds an image watermark into the document with options and specified save format.

static void Aspose::Words::LowCode::Watermarker::SetImage(const System::String &inputFileName, const System::String &outputFileName, Aspose::Words::SaveFormat saveFormat, const System::String &watermarkImageFileName, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions> &options=System::ExplicitCast<Aspose::Words::ImageWatermarkOptions>(nullptr))
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
saveFormatAspose::Words::SaveFormatThe save format.
watermarkImageFileNameconst System::String&Image that is displayed as a watermark.
optionsconst System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&Defines additional options for the image watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.

See Also

Watermarker::SetImage(const System::String&, const System::String&, const System::SharedPtr<Aspose::Words::Saving::SaveOptions>&, const System::String&, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&) method

Adds an image watermark into the document with options and specified save format.

static void Aspose::Words::LowCode::Watermarker::SetImage(const System::String &inputFileName, const System::String &outputFileName, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &saveOptions, const System::String &watermarkImageFileName, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions> &options=System::ExplicitCast<Aspose::Words::ImageWatermarkOptions>(nullptr))
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
saveOptionsconst System::SharedPtr<Aspose::Words::Saving::SaveOptions>&The save options.
watermarkImageFileNameconst System::String&Image that is displayed as a watermark.
optionsconst System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&Defines additional options for the image watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.

See Also

Watermarker::SetImage(const System::String&, const System::String&, const System::String&) method

Adds an image watermark into the document.

static void Aspose::Words::LowCode::Watermarker::SetImage(const System::String &inputFileName, const System::String &outputFileName, const System::String &watermarkImageFileName)
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
watermarkImageFileNameconst System::String&Image that is displayed as a watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.

See Also

Watermarker::SetImage(const System::String&, const System::String&, const System::String&, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&) method

Adds an image watermark into the document with options.

static void Aspose::Words::LowCode::Watermarker::SetImage(const System::String &inputFileName, const System::String &outputFileName, const System::String &watermarkImageFileName, const System::SharedPtr<Aspose::Words::ImageWatermarkOptions> &options)
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
watermarkImageFileNameconst System::String&Image that is displayed as a watermark.
optionsconst System::SharedPtr<Aspose::Words::ImageWatermarkOptions>&Defines additional options for the image watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.

See Also