Exemplo n.º 1
0
 private void readClipboard()
 {
     //Data available in clipboard
     if (Clipboard.ContainsData("data"))
     {
         //Read a picture object from clipboard
         DataObject dataObject = (DataObject)Clipboard.GetDataObject();
         //Casting to Picture type
         Pict = (Utils.Picture)dataObject.GetData("data");
         if (Pict != null)
         {
             pbxPastedPicture.Invalidate();
         }
     }
 }
Exemplo n.º 2
0
 public StartForm()
 {
     InitializeComponent();
     Pict = new Utils.Picture("Default");
 }