Skip to content

Instantly share code, notes, and snippets.

@Alekseyyy
Last active December 14, 2020 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alekseyyy/817f1e35b546c2148120d346f2bb613d to your computer and use it in GitHub Desktop.
Save Alekseyyy/817f1e35b546c2148120d346f2bb613d to your computer and use it in GitHub Desktop.
/*
* 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