This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Drawing; | |
namespace GraphicsHelperLibrary | |
{ | |
public static class GraphicsHelper | |
{ | |
public static void DrawRotatedImage(this Graphics G, Bitmap _Image, PointF _Position, float _Rotation) | |
{ | |
PointF Offset = new PointF(_Image.Width / 2 + _Position.X, | |
_Image.Height / 2 + _Position.Y); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
using System.Drawing; | |
using System.Runtime.InteropServices; | |
namespace ClientExtensions | |
{ | |
public static class ClientBounds | |
{ | |
[DllImport("user32.dll", CharSet = CharSet.Auto)] | |
private static extern IntPtr FindWindow(string strClassName, string strWindowName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Drawing; | |
namespace GraphicsHelperLibrary | |
{ | |
public static class BitmapExtensions | |
{ | |
public static Bitmap FromFileWithDialog() | |
{ | |
OpenFileDialog OpenDialog = new OpenFileDialog(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace SimpleStopwatch | |
{ | |
public class Stopwatch | |
{ | |
private DateTime _Start; | |
public TimeSpan Time { get { return _Time; } } | |
private TimeSpan _Time; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
namespace ExtLibrary | |
{ | |
public static class ListExtensions | |
{ | |
public static string AsString(this IList _List) | |
{ | |
string _Buffer = ""; |