public sealed class UtilDrawing
Public NotInheritable Class UtilDrawing
Dim instance As UtilDrawing
public ref class UtilDrawing sealed
[<SealedAttribute>]
type UtilDrawing = class end
No code example is currently available or this language may not be supported.
DrawEllipseOnScreen(Screen, Rectangle, Color) | Draw a ellipse on the specified device screen. |
DrawEllipseOnScreen(Screen, Rectangle, Color, Int32) | Draw a ellipse on the specified device screen. |
DrawRectangleOnScreen(Screen, Rectangle, Color) | Draw a rectangle on the specified device screen. |
DrawRectangleOnScreen(Screen, Rectangle, Color, Int32) | Draw a rectangle on the specified device screen. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
FillRectangleOnScreen | Draw and fill a rectangle on the specified device screen. |
GetAspectRatio(Size) | Calculate the aspect ratio of the source resolution. |
GetAspectRatio(Int32, Int32) | Calculate the aspect ratio of the source resolution. |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetOppositeAnchorStyles | Gets the opposite anchor style of the specified AnchorStyles. |
GetRandomPoint | Gets a random Point. |
GetRandomPoint(Point) | Gets a random Point between the specified maximum X and Y coordinates. |
GetRandomPoint(Int32, Int32) | Gets a random Point between the specified maximum X and Y coordinates. |
GetRandomPoint(Int32, Int32, Int32, Int32) | Gets a random Point between the specified minimum and maximum X and Y coordinates. |
GetRandomPointF | Gets a random PointF. |
GetRandomPointF(PointF) | Gets a random PointF between the specified maximum X and Y coordinates. |
GetRandomPointF(Single, Single) | Gets a random PointF between the specified maximum X and Y coordinates. |
GetRandomPointF(Single, Single, Single, Single) | Gets a random PointF between the specified minimum and maximum X and Y coordinates. |
GetRandomRectangle | Gets a random Rectangle. |
GetRandomRectangle(Point) | Gets a random Rectangle with a location between the specified maximum X and Y coordinates. |
GetRandomRectangle(Size) | Gets a random Rectangle with a size between the specified maximum width and height. |
GetRandomRectangle(Point, Size) | Gets a random Rectangle with a location between the specified maximum X and Y coordinates, and with a size between the specified maximum width and height. |
GetRandomRectangle(Int32, Int32, Int32, Int32) | Gets a random Rectangle with a location between the specified maximum X and Y coordinates, and with a size between the specified maximum width and height. |
GetRandomRectangle(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) | Gets a random Rectangle with a location between the specified minimum and maximum X and Y coordinates, and with a size between the specified minimum and maximum width and height. |
GetRandomRectangleF | Gets a random RectangleF. |
GetRandomRectangleF(PointF) | Gets a random RectangleF with a location between the specified maximum X and Y coordinates. |
GetRandomRectangleF(SizeF) | Gets a random RectangleF with a size between the specified maximum width and height. |
GetRandomRectangleF(PointF, SizeF) | Gets a random RectangleF with a location between the specified maximum X and Y coordinates, and with a size between the specified maximum width and height. |
GetRandomRectangleF(Single, Single, Single, Single) | Gets a random RectangleF with a location between the specified maximum X and Y coordinates, and with a size between the specified maximum width and height. |
GetRandomRectangleF(Single, Single, Single, Single, Single, Single, Single, Single) | Gets a random RectangleF with a location between the specified minimum and maximum X and Y coordinates, and with a size between the specified minimum and maximum width and height. |
GetRandomSize | Gets a random Size. |
GetRandomSize(Size) | Gets a random Size between the specified maximum width and height. |
GetRandomSize(Int32, Int32) | Gets a random Size between the specified maximum width and height. |
GetRandomSize(Int32, Int32, Int32, Int32) | Gets a random Size between the specified minimum and maximum width and height. |
GetRandomSizeF | Gets a random SizeF. |
GetRandomSizeF(SizeF) | Gets a random SizeF between the specified maximum width and height. |
GetRandomSizeF(Single, Single) | Gets a random SizeF between the specified maximum width and height. |
GetRandomSizeF(Single, Single, Single, Single) | Gets a random SizeF between the specified minimum and maximum width and height. |
GetSquareSimilarityPercentage(Size) | Determine the similarity percentage that the specified Size has with a square shape, by dividing its shortest side between the longest one. For example, having a Size of 4x4 (Width x Height), this function will return a value of 1, meaning that all the sides ( {Top=4, Bottom=4, Left=4, Right=4} ) are of equal length, or in other words, it is a perfect square shape. For example too, having a Size of 640x480 (Width x Height), this function will return a value of 0.75, meaning that the length of the sides ( {Top=640, Bottom=640, Left=480, Right=480} ) are 75% near to be a perfect square shape. |
GetSquareSimilarityPercentage(Int32, Int32) | Determine the similarity percentage that the specified Size has with a square shape, by dividing its shortest side between the longest one. For example, having a Size of 4x4 (Width x Height), this function will return a value of 1, meaning that all the sides ( {Top=4, Bottom=4, Left=4, Right=4} ) are of equal length, or in other words, it is a perfect square shape. For example too, having a Size of 640x480 (Width x Height), this function will return a value of 0.75, meaning that the length of the sides ( {Top=640, Bottom=640, Left=480, Right=480} ) are 75% near to be a perfect square shape. |
GetType | Gets the Type of the current instance. (Inherited from Object) |
PointRectangleFToCenterOfRectangleF | Points the specified RectangleF to the center of another RectangleF. |
PointRectangleToCenterOfControl | Points the specified Rectangle to the center of a Control. |
PointRectangleToCenterOfForm | Points the specified Rectangle to the center of a Form. |
PointRectangleToCenterOfRectangle | Points the specified Rectangle to the center of another Rectangle. |
PointRectangleToCenterOfScreen | Points the specified Rectangle to the center of a screen Screen. |
ResolutionIsOfAspectRatio(Size, Point) | Determine whether the source resolution belongs to the specified aspect ratio. |
ResolutionIsOfAspectRatio(Int32, Int32, Point) | Determine whether the source resolution belongs to the specified aspect ratio. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
TransformPoint(Rectangle, Rectangle, Point) | Transforms a Point from a coordinate space relative to one Rectangle to a coordinate space relative to another Rectangle. |
TransformPoint(RectangleF, RectangleF, PointF) | Transforms a PointF from a coordinate space relative to one RectangleF to a coordinate space relative to another RectangleF. |
WinFormsFontSizeToWPFFontSize(Font) | Converts a WinForms font size to WPF font size. |
WinFormsFontSizeToWPFFontSize(Single) | Converts a WinForms font size to WPF font size. |
WPFFontSizeToWinFormsFontSize | Converts a WPF font size to WinForms font size. |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |