Property | Type | Description | |
---|---|---|---|
Cosine30Degrees | Double | ||
Tangent30Degrees | Double |
Method | Description | |
---|---|---|
BitmapToBitmapSource ( System bitmap ) : System.Windows.Media.Imaging.BitmapSource | ||
ColorToWpfColor ( System color ) : |
||
ColorToWpfColor ( System color, Byte newAlpha ) : |
||
CreateOnePixelPen ( Visual visual, System.Windows.Media.Brush brush ) : System.Windows.Media.Pen | ||
DrawPixelAlignedRectangle ( System.Windows.Media.DrawingContext drawingContext, System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, |
||
FontToTypeface ( System font ) : System.Windows.Media.Typeface | ||
FreezeIfFreezable ( System.Windows.Freezable freezable ) : System.Boolean | ||
GetAngleBetweenPointsRadians ( Point point1, Point point2 ) : Double | ||
GetContrastingColor ( System color ) : |
||
GetContrastingColor ( System color, System.Boolean useMaximumContrast ) : |
||
GetDistanceBetweenPoints ( Point point1, Point point2 ) : Double | ||
GetFarthestRectangleEdge ( Point point, |
||
GetFormattedTextBounds ( System.Windows.Media.FormattedText formattedText, Point origin ) : |
||
GetFormattedTextSize ( System.Windows.Media.FormattedText formattedText ) : |
||
GetRectCenter ( System rect ) : Point | ||
GetRectangleMinusMargin ( |
||
GetRotatedMatrix ( Point centerOfRotation, Double angleToRotateDegrees ) : Matrix | ||
GetScreenDpi ( Visual visual ) : |
||
MovePointWithinBounds ( Point point, |
||
MoveRectangleWithinBounds ( |
||
PointFToWpfPoint ( System pointF ) : |
||
RectToRectangle ( System rect ) : System.Drawing.Rectangle | ||
RectangleToRect ( System rectangle ) : |
||
SetTextBlockFont ( System.Windows.Controls.TextBlock textBlock, System font ) : void | ||
SetWpfColorAlpha ( System color, Byte newAlpha ) : |
||
SquareFromCenterAndHalfWidth ( System center, Double halfWidth ) : |
||
SwapPoints ( Point &point1, Point &point2 ) : void | ||
SystemDrawingFontSizeToWpfFontSize ( Double windowsFormsFontSize ) : Double | ||
TransformLength ( Double length, |
||
TriangleBoundsFromCenterAndHalfWidth ( System center, Double halfWidth ) : |
||
VisualToBitmap ( Visual visual, |
||
WpfFontSizeToSystemDrawingFontSize ( Double wpfFontSize ) : Double | ||
WpfPointToPoint ( System point ) : System.Drawing.Point | ||
WpfToPx ( Double lengthWpf, Double screenDpi ) : Double |
Method | Description | |
---|---|---|
DeleteObject ( |
||
WpfGraphicsUtil ( ) : System |
Static constructor for the WpfGraphicsUtil class.
|
public static BitmapToBitmapSource ( System bitmap ) : System.Windows.Media.Imaging.BitmapSource | ||
bitmap | System | |
return | System.Windows.Media.Imaging.BitmapSource |
public static ColorToWpfColor ( System color ) : |
||
color | System | |
return |
public static ColorToWpfColor ( System color, Byte newAlpha ) : |
||
color | System | |
newAlpha | Byte | |
return |
public static CreateOnePixelPen ( Visual visual, System.Windows.Media.Brush brush ) : System.Windows.Media.Pen | ||
visual | Visual | |
brush | System.Windows.Media.Brush | |
return | System.Windows.Media.Pen |
public static DrawPixelAlignedRectangle ( System.Windows.Media.DrawingContext drawingContext, System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, |
||
drawingContext | System.Windows.Media.DrawingContext | |
brush | System.Windows.Media.Brush | |
pen | System.Windows.Media.Pen | |
rect | ||
return | void |
public static FontToTypeface ( System font ) : System.Windows.Media.Typeface | ||
font | System | |
return | System.Windows.Media.Typeface |
public static FreezeIfFreezable ( System.Windows.Freezable freezable ) : System.Boolean | ||
freezable | System.Windows.Freezable | |
return | System.Boolean |
public static GetAngleBetweenPointsRadians ( Point point1, Point point2 ) : Double | ||
point1 | Point | |
point2 | Point | |
return | Double |
public static GetContrastingColor ( System color ) : |
||
color | System | |
return |
public static GetContrastingColor ( System color, System.Boolean useMaximumContrast ) : |
||
color | System | |
useMaximumContrast | System.Boolean | |
return |
public static GetDistanceBetweenPoints ( Point point1, Point point2 ) : Double | ||
point1 | Point | |
point2 | Point | |
return | Double |
public static GetFarthestRectangleEdge ( Point point, |
||
point | Point | |
rectangle | ||
return | RectangleEdge |
public static GetFormattedTextBounds ( System.Windows.Media.FormattedText formattedText, Point origin ) : |
||
formattedText | System.Windows.Media.FormattedText | |
origin | Point | |
return |
public static GetFormattedTextSize ( System.Windows.Media.FormattedText formattedText ) : |
||
formattedText | System.Windows.Media.FormattedText | |
return |
public static GetRectCenter ( System rect ) : Point | ||
rect | System | |
return | Point |
public static GetRectangleMinusMargin ( |
||
rectangle | ||
margin | Double | |
return |
public static GetRotatedMatrix ( Point centerOfRotation, Double angleToRotateDegrees ) : Matrix | ||
centerOfRotation | Point | |
angleToRotateDegrees | Double | |
return | Matrix |
public static GetScreenDpi ( Visual visual ) : |
||
visual | Visual | |
return |
public static MovePointWithinBounds ( Point point, |
||
point | Point | |
boundingRectangle | ||
return | Point |
public static MoveRectangleWithinBounds ( |
||
rectangle | ||
boundingRectangle | ||
resizeRectangleIfNecessary | System.Boolean | |
return |
public static PointFToWpfPoint ( System pointF ) : |
||
pointF | System | |
return |
public static RectToRectangle ( System rect ) : System.Drawing.Rectangle | ||
rect | System | |
return | System.Drawing.Rectangle |
public static RectangleToRect ( System rectangle ) : |
||
rectangle | System | |
return |
public static SetTextBlockFont ( System.Windows.Controls.TextBlock textBlock, System font ) : void | ||
textBlock | System.Windows.Controls.TextBlock | |
font | System | |
return | void |
public static SetWpfColorAlpha ( System color, Byte newAlpha ) : |
||
color | System | |
newAlpha | Byte | |
return |
public static SquareFromCenterAndHalfWidth ( System center, Double halfWidth ) : |
||
center | System | |
halfWidth | Double | |
return |
public static SwapPoints ( Point &point1, Point &point2 ) : void | ||
point1 | Point | |
point2 | Point | |
return | void |
public static SystemDrawingFontSizeToWpfFontSize ( Double windowsFormsFontSize ) : Double | ||
windowsFormsFontSize | Double | |
return | Double |
public static TransformLength ( Double length, |
||
length | Double | |
transform | ||
transformAlongX | System.Boolean | |
return | Double |
public static TriangleBoundsFromCenterAndHalfWidth ( System center, Double halfWidth ) : |
||
center | System | |
halfWidth | Double | |
return |
public static VisualToBitmap ( Visual visual, |
||
visual | Visual | |
bitmapWidthPx | ||
bitmapHeightPx | ||
return | System.Drawing.Bitmap |
public static WpfFontSizeToSystemDrawingFontSize ( Double wpfFontSize ) : Double | ||
wpfFontSize | Double | |
return | Double |
public static WpfPointToPoint ( System point ) : System.Drawing.Point | ||
point | System | |
return | System.Drawing.Point |
public static WpfToPx ( Double lengthWpf, Double screenDpi ) : Double | ||
lengthWpf | Double | |
screenDpi | Double | |
return | Double |