ImageGear .NET - Updated
ImGearPresentationPageDisplay Class
User Guide > How to Work with... > Common Operations > Viewing > Viewing with WPF > Display Images in WPF Environment > ImGearPresentationPageDisplay Class

ImGearPresentationPageDisplay Class is an advanced version of ImGearPageDisplay Class that requires Windows Presentation Framework and the ImageGear23.Presentation.dll assembly.

This class implements the IImGearPageDisplay interface and implements a set of display API for rendering an image specified by the Page Property and annotations specified by the ARTPage Property in the WPF environment. The ImGearPresentationPageDisplay class derives from the System.Windows.DependencyObject class, allowing the Page, ARTPage, Channels, DICOMDisplaySettings, LUT, Orientation, Contrast, Brightness, and Gamma properties of this class to serve as the source or target of a binding. Note that since DependencyObject’s have thread affinity, the ImGearPresentationPageDisplay class should only be accessed from the thread on which it is created.

It is recommended that you use ImGearPresentationPageDisplay Class for WPF and FW 3.0 applications.

C#
Copy Code
ImGearPresentationPageDisplay newDisplay = new ImGearPresentationPageDisplay();
ImGearPage page = ImGearFormats.LoadPage(...);
newDisplay.Page = page;
ImGearARTPage artPage = new ImGearARTPage();
newDisplay.ARTPage = artPage;

WinForms applications should continue using ImGearPageDisplay Class available in the ImageGear23.Core.dll assembly.

C#
Copy Code
ImGearPageDisplay winFormsDisplay = new ImGearPageDisplay();
ImGearPage page = ImGearFormats.LoadPage(...);
winFormsDisplay.Page = page;
ImGearARTPage artPage = new ImGearARTPage();
winFormsDisplay.ARTPage = artPage;