Converts a RasterImage to and from other data types.
Syntax
Visual Basic (Declaration) | |
---|
Public Class RasterImageConverter
Inherits TypeConverter |
C++/CLI | |
---|
public ref class RasterImageConverter : public TypeConverter |
Example
This example will create an RasterImage object in four ways:"
1- Image="Uri".
2- Image = "Uri, BPP"
3- Image= "Uri, BPP, Order"
4- Image="Uri, BPP. Order, page"
XAML | Copy Code |
---|
<Window x:Class="WPFSamples.RasterImageConverter" Height="600" Width="800" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Leadtools_Windows_Controls="clr-namespace:Leadtools.Windows.Controls;assembly=Leadtools.Windows.Controls.Pro"> <DockPanel> <Leadtools_Windows_Controls:RasterImageViewer Name="theViewer1" Image="file:///C:\Program Files\LEAD Technologies\LEADTOOLS 16\Images\image1.jpg" DockPanel.Dock="Bottom" HorizontalAlignment="Center" VerticalAlignment="Bottom" Frame="10,5" FrameBackground="Red" FrameShadow="5,5" FrameShadowBackground="Blue" UseDpi="False" /> <Leadtools_Windows_Controls:RasterImageViewer Name="theViewer2" Image="file:///C:\Program Files\LEAD Technologies\LEADTOOLS 16\Images\image1.jpg, 8" DockPanel.Dock="Bottom" HorizontalAlignment="Center" VerticalAlignment="Bottom" Frame="10,5" FrameBackground="Red" FrameShadow="5,5" FrameShadowBackground="Blue" UseDpi="False" /> <Leadtools_Windows_Controls:RasterImageViewer Name="theViewer2" Image="file:///C:\Program Files\LEAD Technologies\LEADTOOLS 16\Images\image1.jpg, 8, RgbOrGray" DockPanel.Dock="Bottom" HorizontalAlignment="Center" VerticalAlignment="Bottom" Frame="10,5" FrameBackground="Red" FrameShadow="5,5" FrameShadowBackground="Blue" UseDpi="False" /> <Leadtools_Windows_Controls:RasterImageViewer Name="theViewer2" Image="file:///C:\Program Files\LEAD Technologies\LEADTOOLS 16\Images\ImageProcessingDemo\Image4.tif, 8, RgbOrGray, 2" DockPanel.Dock="Bottom" HorizontalAlignment="Center" VerticalAlignment="Bottom" Frame="10,5" FrameBackground="Red" FrameShadow="5,5" FrameShadowBackground="Blue" UseDpi="False" /> </DockPanel> <Window.Title> "RasterImageConverter example" </Window.Title> </Window> |
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
See Also