/MagmaMc.GDI

An Easy Way To Display Shapes And Images On The Users Display

Primary LanguageC#OtherNOASSERTION

MagmaMc.GDI

User Friendly Way To Render Shapes To The Users Screen

Basic Usage

Box

Box.Render(
	new Pen(Color.White), 
	new Point(300, 200), // Start X, Y (X, Y)
	new Point(300, 200), // End X, Y (Width, Hight)
	true // Fill Box
	);

Screen

Box.Render(
	TernaryRaster.SRCCOPY, 
	new Rectangle(300, 200, 100, 100), // Start X, Y,  Width, Height - Source
	new Rectangle(600, 400, 100, 100), // End X, Y,  Width, Height - Destination
	);

Line

Line line = new Line(new Pen(Color.White));

line.Render(
	new Point(300, 200), // Start X, Y
	new Point(300, 200), // End X, Y
	);

Line Static

Line.Render(
	new Pen(Color.White), 
	new Point(300, 200), // Start X, Y
	new Point(300, 200), // End X, Y
	);

Image

Graphic.Render(
	(Bitmap)System.Drawing.Image.FromFile("image.png"), // Image To Render
	new Point(100, 500) // X, Y Position
	);

Can Also Support Icon And GIF

Icon

Graphic.Render(
	(Bitmap)System.Drawing.Icon.FromFile("image.ico"), // Image To Render
	new Point(100, 500) // X, Y Position
	);

GIF

Graphic.Render(
	new GIF("image.gif"), // Image To Render
	new Point(100, 500) // X, Y Position
	);