Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

[ Open Source ] GDI Helper - Custom GDI Methods and Extensions.

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
[Image: narwinsig.gif]
Looks amazing. thank you for making this!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by alizer0Jul 23, 2021 10:47 AM 2 423 Jul 23, 2021 10:47 AM
Last Post: tux1
[Python] by KriptikMar 26, 2021 03:21 PM 3 198 Mar 26, 2021 03:21 PM
Last Post: caw
[Python] by unixJul 11, 2020 10:36 PM 0 291 Jul 11, 2020 10:36 PM
Last Post: unix