This documentation is archived and is not being maintained.

XpsImage Class

Represents an image in an XpsDocument.

Namespace:  System.Windows.Xps.Packaging
Assembly:  ReachFramework (in ReachFramework.dll)

'Declaration
Public Class XpsImage _
	Inherits XpsResource
'Usage
Dim instance As XpsImage
You cannot directly create an instance of this class in XAML.

The XpsImage class has no public constructor.

Use the AddImage method to add an image and obtain a reference to it in a new document.

Use the GetImage method to obtain an image reference in an existing document.

Based on settings of XpsSerializationManager and XpsPackagingPolicy, such as FontSubsetterCommitPolicies and PackageInterleavingOrder, the flush operation of the Commit method of the XpsImage class may be delayed until the complete XpsDocument is closed.

The following example shows how to add images to an XpsDocument.

No code example is currently available or this language may not be supported.

For the complete sample, see Creating an XPS Document Sample.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: