Created
November 1, 2020 12:23
-
-
Save ryerh/21b65082fe54b06bec113787cab8bfa8 to your computer and use it in GitHub Desktop.
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.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
namespace FacialRecognition | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom; | |
this.pictureBox1.Image = Image.FromFile(@"C:\Users\Public\Pictures\Sample Pictures\Koala.jpg"); | |
} | |
private void pictureBox1_Paint(object sender, PaintEventArgs e) | |
{ | |
e.Graphics.RotateTransform(30); | |
e.Graphics.DrawRectangle(new Pen(Color.Blue, 2), 10, 10, 100, 100); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment