Class
WatermarkImageSettings

Contains settings for image watermark.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class WatermarkImageSettings : INotifyPropertyChanged

Inheritance: objectWatermarkImageSettings

Implements: INotifyPropertyChanged

Constructors

WatermarkImageSettings()

Initializes a new instance of the WatermarkImageSettings class.

Declaration

cs-api-definition
public WatermarkImageSettings()

WatermarkImageSettings(Stream)

Initializes a new instance of the WatermarkImageSettings class.

Declaration

cs-api-definition
public WatermarkImageSettings(Stream inputStream)

Parameters

inputStream

Stream

The stream from which to obtain the image source.

WatermarkImageSettings(Stream, Size, string)

Initializes a new instance of the WatermarkImageSettings class.

Declaration

cs-api-definition
public WatermarkImageSettings(Stream inputStream, Size size, string extension)

Parameters

inputStream

Stream

The stream from which to obtain the image source.

size

Size

The size of the image.

extension

string

The extension of the image.

WatermarkImageSettings(WriteableBitmap)

Initializes a new instance of the WatermarkImageSettings class.

Declaration

cs-api-definition
public WatermarkImageSettings(WriteableBitmap writableBitmap)

Parameters

writableBitmap

WriteableBitmap

The writable bitmap which will be used to create the image.

Fields

NormalWatermarkOpacity

Declaration

cs-api-definition
public static readonly double NormalWatermarkOpacity

Field Value

double

Properties

Extension

Gets or sets the file extension.

Declaration

cs-api-definition
[XamlSerializable]
public string Extension { get; set; }

Property Value

string

The extension.

Height

Gets or sets the height.

Declaration

cs-api-definition
[XamlSerializable]
public double Height { get; set; }

Property Value

double

The height.

RawData

Gets or sets the image bytes in Base64 format. This property is used for serialization.

Declaration

cs-api-definition
[XamlSerializable]
public string RawData { get; set; }

Property Value

string

The raw data.

RotateAngle

Gets or sets the angle at which the image should be rotated.

Declaration

cs-api-definition
[XamlSerializable(0)]
public double RotateAngle { get; set; }

Property Value

double

The rotate angle.

Size

Gets or sets the size.

Declaration

cs-api-definition
public Size Size { get; set; }

Property Value

Size

The size.

UriSource

Gets or sets the URI which is used to obtain the image source.

Declaration

cs-api-definition
public Uri UriSource { get; set; }

Property Value

Uri

The URI source.

Width

Gets or sets the width.

Declaration

cs-api-definition
[XamlSerializable]
public double Width { get; set; }

Property Value

double

The width.

Methods

CreateDeepCopy()

Creates a deep copy of this object.

Declaration

cs-api-definition
public WatermarkImageSettings CreateDeepCopy()

Returns

WatermarkImageSettings

The copy.

GetBytes()

Gets the byte array used to create the image.

Declaration

cs-api-definition
public byte[] GetBytes()

Returns

byte[]

GetRootDocument()

Gets the RadDocument instance associated to this object.

Declaration

cs-api-definition
public RadDocument GetRootDocument()

Returns

RadDocument

The RadDocument instance associated to this object.

Events

PropertyChanged

Occurs after a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged