Last active
December 14, 2020 02:17
-
-
Save Alekseyyy/817f1e35b546c2148120d346f2bb613d 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
/* | |
* Cybercocaine Programme | |
* This'll make ur computer higher than an airplane ;-) | |
* By Aleksey | |
* github.com/Alekseyyy | |
* twitter.com/EpsilonCalculus | |
*/ | |
using System; | |
using System.Drawing; | |
using System.IO; | |
using System.Reflection; | |
using System.Windows.Forms; | |
namespace Cybercocaine { | |
public class StonedPic : System.Windows.Forms.ContainerControl { | |
public StonedPic() { | |
//InitializeComponent(); | |
Cursor.Hide(); | |
} | |
public void CreateTheExperience(string myImage) { | |
Form the_experience = new Form(); | |
Image background = new Bitmap(myImage); | |
the_experience.FormBorderStyle = FormBorderStyle.None; | |
the_experience.StartPosition = FormStartPosition.CenterScreen; | |
the_experience.WindowState = FormWindowState.Maximized; | |
the_experience.BackgroundImage = background; | |
the_experience.ShowDialog(); | |
} | |
} | |
class MainLogic { | |
public static void Main(string[] args) { | |
StonedPic sp = new StonedPic(); | |
sp.CreateTheExperience(@".\image.jpg"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment