Click or drag to resize

WpfObjectConverter Class

This class contains helpful methods for converting between System.Drawing and System.Windows.Media objects. There are also methods for converting DotImage classes into System.Windows.Media objects.
Inheritance Hierarchy
SystemObject
  Atalasoft.Annotate.WpfWpfObjectConverter

Namespace:  Atalasoft.Annotate.Wpf
Assembly:  Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public static class WpfObjectConverter

The WpfObjectConverter type exposes the following members.

Methods
  NameDescription
Public methodStatic memberConvertAnnotationBrush
Converts an AnnotationBrush into a System.Windows.Media.Brush.
Public methodStatic memberConvertAnnotationFont
Converts an AnnotationFont to a System.Windows.Media.Typeface.
Public methodStatic memberConvertAnnotationImage(BitmapSource)
Converts a System.Windows.Media.Imaging.BitmapSource to an AnnotationImage.
Public methodStatic memberConvertAnnotationImage(AnnotationImage)
Converts a AnnotationImage to a System.Windows.Media.Imaging.BitmapSource.
Public methodStatic memberConvertAnnotationPen
Converts a AnnotationPen to a System.Windows.Media.Pen.
Public methodStatic memberConvertBitmap(Bitmap)
Converts a System.Drawing.Bitmap to a System.Windows.Media.Imaging.BitmapSource.
Public methodStatic memberConvertBitmap(BitmapSource)
Converts a System.Windows.Media.Imaging.BitmapSource to a System.Drawing.Bitmap.
Public methodStatic memberConvertColor(Color)
Converts a System.Drawing.Color to a System.Windows.Media.Color.
Public methodStatic memberConvertColor(Color)
Converts a System.Windows.Media.Color to a System.Drawing.Color.
Public methodStatic memberConvertMatrix(Matrix)
Converts a System.Drawing.Drawing2D.Matrix to a System.Windows.Media.Matrix.
Public methodStatic memberConvertMatrix(Matrix)
Converts a System.Windows.Media.Matrix to a System.Drawing.Drawing2D.Matrix.
Public methodStatic memberConvertPointF(PointF)
Converts a System.Drawing.PointF to a System.Windows.Point.
Public methodStatic memberConvertPointF(PointF)
Converts an array of System.Drawing.PointF to an array of System.Windows.Point.
Public methodStatic memberConvertPointF(Point)
Converts a System.Windows.Point to a System.Drawing.PointF.
Public methodStatic memberConvertPointF(Point)
Converts an array of System.Windows.Point to an array of System.Drawing.PointF.
Public methodStatic memberConvertRectangleF(RectangleF)
Converts a System.Drawing.RectangleF to a System.Windows.Rect.
Public methodStatic memberConvertRectangleF(Rect)
Converts a System.Windows.Rect to a System.Drawing.RectangleF.
Public methodStatic memberConvertSizeF(SizeF)
Converts a System.Drawing.SizeF to a System.Windows.Size.
Public methodStatic memberConvertSizeF(Size)
Converts a System.Windows.Size to a System.Drawing.SizeF.
Top
See Also