Hack Forums
[C#] [ Open Source ] GDI Helper - Custom GDI Methods and Extensions. - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] [ Open Source ] GDI Helper - Custom GDI Methods and Extensions. (/showthread.php?tid=5776233)



[ Open Source ] GDI Helper - Custom GDI Methods and Extensions. - Narwin - Dec 29, 2017

Intro

GDI Helper is a .NET library that provides  a bunch of useful GDI methods and extensions, this library can be used for multi purposes too.

Dependency

.NET Framewrok 3.5 or higher.

Contents

Methods
  • GetFont (e.g : for a font stored in resources).

  • GetFont (e.g : for a font stored in storage).

  • SetAlignment.

  • GlowBrush (for GraphicsPath).

  • GlowBrush (for array of points).


Extensions
  • Rectangles
    • RoundRec (Credits : AeonHacks).



  • Colors     
    • ToHTML.

    • ToBrush.

    • ToPen.

    • ToRGBString.

    • ToRGBAString.

    • ToARGBString.



  • Drawings
    • DrawImageFromBase64.

    • DrawColoredImage ( for drawing image in base64 string).

    • DrawColoredImage (for drawing and image).

    • DrawTransparentImage.

    • DrawStrokedRectangle.

    • DrawStrokedEllipse.

    • DrawRoundedRectangleWithStroke.



  • Images
    • ToBrush (without destination rectangle).

    • ToBrush (with destination rectangle).

    • ToPen.

    • ToBase64.



  • Strings
    • ToImage (if the string would be an image in base64 string).

    • ToColor (if the string would be a color in html, e.g : #000).

    • ToBrush (if the string would be a color in html, e.g : #000).

    • ToPen (if the string would be a color in html, e.g : #000).

    • ToFont (if the string would be an available font name, e.g : "Arial").




How To Use 

See the repository page of GDIHelper in Github (follow download link).

Download

GDI Helper


RE: [ Open Source ] GDI Helper - Custom GDI Methods and Extensions. - ForceJew - Dec 29, 2017

Looks amazing. thank you for making this!