Пример #1
0
    public void Reset()
    {
        UpdateImage updater = canvas.GetComponent <UpdateImage>();

        updater.cleanImages();
        this.inventory.Reset();
    }
Пример #2
0
        // GET: UpdateImages/Create
        public ActionResult Create()
        {
            UpdateImage obj = new UpdateImage();

            obj.Id = CreateID.CreateID_ByteText();
            return(View(obj));
        }
Пример #3
0
 protected virtual void OnUpdate(UpdateImage update)
 {
     if (!supressUpdate)
     {
         Updated?.Invoke(this, update);
     }
 }
Пример #4
0
        public ActionResult Index(FormCollection fc, HttpPostedFileBase file)
        {
            UpdateImage updateImage       = new UpdateImage();
            var         allowedExtensions = new[] {
                ".Jpg", ".png", ".jpg", "jpeg"
            };

            updateImage.Id        = fc["Id"].ToString();
            updateImage.Image_url = file.ToString();
            updateImage.Name_im   = fc["Name"].ToString();
            var fileName = Path.GetFileName(file.FileName);
            var ext      = Path.GetExtension(file.FileName);

            if (allowedExtensions.Contains(ext))
            {
                string name       = Path.GetFileNameWithoutExtension(fileName);
                string myfile     = name + "_" + updateImage.Id + ext;
                var    path       = Path.Combine(Server.MapPath("~/images/img"), myfile);
                string pathstring = "/images/img/" + myfile;
                updateImage.Image_url = pathstring;
                obj.UpdateImages.Add(updateImage);
                obj.SaveChanges();
                file.SaveAs(path);
            }
            else
            {
                ViewBag.message = "Vui lòng chọn duy nhất một file!";
            }
            return(View());
        }
Пример #5
0
        public ActionResult DeleteConfirmed(string id)
        {
            UpdateImage updateImage = db.UpdateImages.Find(id);

            db.UpdateImages.Remove(updateImage);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #6
0
    public void addElement(GameObject gameObject)
    {
        inventory.addInventory(gameObject);
        UpdateImage    updater      = canvas.GetComponent <UpdateImage>();
        SpriteRenderer sprirenderer = gameObject.GetComponent <SpriteRenderer>();

        updater.addSprite(sprirenderer.sprite);
    }
Пример #7
0
 protected virtual void OnUpdate(UpdateImage updateImage)
 {
     if (updateImage == null)
     {
         updateImage = new UpdateImage(null, Image, Update.Full, null);
     }
     Updated?.Invoke(this, updateImage);
 }
Пример #8
0
 public override void DoIdle()
 {
     // Initiate redrawing continuously
     if (_stopWatch.IsRunning)
     {
         UpdateImage?.Invoke();
     }
 }
Пример #9
0
        /// <summary>
        /// Updates the image, if procedure is set.
        /// </summary>
        public void Update()
        {
            UpdateImage u = procedure;

            if (u != null)
            {
                u(this, argumentData);
            }
        }
Пример #10
0
 public ActionResult Edit([Bind(Include = "Id,Image_url,Name_im")] UpdateImage updateImage)
 {
     if (ModelState.IsValid)
     {
         db.Entry(updateImage).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(updateImage));
 }
Пример #11
0
        protected void Logic_ChannelsChanged(int[] channelIds)
        {
            if (_useTimeline)
            {
                double time = _time.GetValue(); // 0..1 - from mouse input
                _timeline.SetCurrentTime(time);
            }

            // Initiate redrawing
            UpdateImage?.Invoke();
        }
Пример #12
0
 private void ThrowImage(object img)
 {
     if (UpdateImage != null)
     {
         foreach (UpdateImageHandler t in UpdateImage.GetInvocationList())
         {
             t.BeginInvoke(img, null, null);
             //t.Invoke(img);
         }
     }
 }
Пример #13
0
        /// <summary>
        /// Обновляет картинку в PictureBox
        /// </summary>
        public void Update()
        {
            if (pictureBox.InvokeRequired)
            {
                myDelegate = new UpdateImage(Update);
                pictureBox.Invoke(myDelegate);
            }
            else
                pictureBox.Image = (Image)bitmapForPictureBox.Clone();

        }
Пример #14
0
 public void ThrowImage(object img)
 {
     if (UpdateImage != null)
     {
         //UpdateMessage(msg);
         foreach (UpdateImageHandler t in UpdateImage.GetInvocationList())
         {
             t.BeginInvoke(img, null, null);
         }
     }
 }
Пример #15
0
        public ActionResult Create([Bind(Include = "Id,Image_url,Name_im")] UpdateImage updateImage)
        {
            if (ModelState.IsValid)
            {
                db.UpdateImages.Add(updateImage);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(updateImage));
        }
 public MapVisualisation(World w, Keyboard.Key toggleKey, bool startEnabled, UpdateImage ui)
 {
     int width = w.Width;
     int height = w.Height;
     
     world = w;
     MapSprite = new Sprite(new Texture((uint)width, (uint)height));
     img = new Image((uint)width, (uint)height);
     updater = ui;
     ToggleKey = toggleKey;
     Enabled = startEnabled;
 }
Пример #17
0
 void Up(Image I)
 {
     if (pictureBox1.InvokeRequired)
     {
         UpdateImage ui = new UpdateImage(Up);
         pictureBox1.Invoke(ui, I);
     }
     else
     {
         pictureBox1.Image = I;
     }
 }
Пример #18
0
        // GET: UpdateImages/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            UpdateImage updateImage = db.UpdateImages.Find(id);

            if (updateImage == null)
            {
                return(HttpNotFound());
            }
            return(View(updateImage));
        }
Пример #19
0
 public void SetNewImage(float[] imData, int height)
 {
     if (imData == null)
     {
         return;
     }
     image = imData;
     if (height < 1)
     {
         height = 1;
     }
     imHeight = height;
     imWidth  = image.Length / imHeight;
     UpdateImage?.Invoke(image, imHeight);
 }
        public async Task <IActionResult> UpdateImageAsync(int id, [FromBody] UpdateImage command)
        {
            if (id != AccountID)
            {
                return(Forbid());
            }
            if (await _userImageService.ExistsForUser(id) == false)
            {
                return(BadRequest("Image doesn't exist."));
            }

            var user = await _userService.GetAsync(id);

            await _userImageService.UpdateAsync(command, user);

            return(NoContent());
        }
Пример #21
0
        protected void Input_ChannelsChanged(int[] channelIds)
        {
            if (!_stopWatch.IsRunning)
            {
                return;
            }

            double time = GetCurrentTime();

            if (Array.IndexOf(channelIds, _channelMouseY.GetId()) != -1)
            {
                double mouseY = -_channelMouseY.GetValue();  // flip here
                Debug.WriteLine("Signal mouse {0}", mouseY);
                _signalMouse.Add(time, mouseY);
                _signalMouse.RunCascade();
            }

            // Initiate redrawing
            UpdateImage?.Invoke();
        }
Пример #22
0
 protected virtual void PartialUpdate(UpdateImage updateImage)
 {
 }
Пример #23
0
 protected override void OnUpdate(UpdateImage updateImage)
 {
     Bitmap.FillBitmap(updateImage.Image);
     PartialUpdate(updateImage);
     base.OnUpdate(updateImage);
 }
Пример #24
0
 partial void PartialUpdate(UpdateImage updateImage);
        static void Main(string[] args)
        {
            Console.WriteLine("Open RunExamples.cs. \nIn Main() method uncomment the example that you want to run.");
            Console.WriteLine("=====================================================");

            // Please uncomment the example you want to try out
            #region Quick Start

            QuickStart.SetLicenseFromFile.Run();
            //QuickStart.SetLicenseFromStream.Run();
            //QuickStart.SetMeteredLicense.Run();
            QuickStart.HelloWorld.Run();
            #endregion // Quick Start

            #region Basic Usage

            #region Common

            GetSupportedFileFormats.Run();

            #endregion

            #region Document Preview

            GetDocumentInfo.Run();
            GeneratePreview.Run();
            GetDocumentProcessHistory.Run();
            #endregion

            #region Sign document with different signature types

            //Sign document with text signature
            SignWithText.Run();

            //Sign document with image signature
            SignWithImage.Run();

            //Sign document with barcode signature
            SignWithBarcode.Run();

            //Sign document with qr-code signature
            SignWithQRCode.Run();

            //Sign document with digital signature
            SignWithDigital.Run();

            //Sign document with Stamp signature
            SignWithStamp.Run();

            //Sign image document with metadata signature
            SignImageWithMetadata.Run();

            //Sign pdf document with metadata signature
            SignPdfWithMetadata.Run();

            //Sign presentation document with metadata signature
            SignPresentationWithMetadata.Run();

            //Sign spreadsheets document with metadata signature
            SignSpreadsheetWithMetadata.Run();

            //Sign word-processing document with metadata signature
            SignWordProcessingWithMetadata.Run();

            //Sign pdf document with form-field signature
            SignPdfWithFormField.Run();

            // Sign document with multiple signature types
            SignWithMultipleOptions.Run();

            #endregion // Sign document with different signature types

            #region Search signed documents for different signature types

            //Search document for Text signature
            SearchForText.Run();

            //Search document for Image signature
            SearchForImage.Run();

            //Search document for Barcode signature
            SearchForBarcode.Run();

            //Search document for QR-Code signature
            SearchForQRCode.Run();

            //Search document for digital signature
            SearchForDigital.Run();

            //Search image document for metadata signatures
            SearchImageForMetadata.Run();

            //Search PDF document for metadata signatures
            SearchPdfForMetadata.Run();

            //Search Presentation document for metadata signatures
            SearchPresentationForMetadata.Run();

            //Search Spreadsheet document for metadata signatures
            SearchSpreadsheetForMetadata.Run();

            //Search WordProcessing document for metadata signatures
            SearchWordProcessingForMetadata.Run();

            //Search document for form-field signature
            SearchForFormField.Run();

            //Search document for multiple signature types
            SearchForMultiple.Run();

            #endregion // Search signed documents for different signature types

            #region Verify documents signed with different signature types

            //Verify document with Text signature
            VerifyText.Run();

            //Verify document with Barcode signature
            VerifyBarcode.Run();

            //Verify document with QR-Code signature
            VerifyQRCode.Run();

            //Verify document with digital signature
            VerifyDigital.Run();

            //Verify document with multiple signatures
            VerifyWithMultipleOptions.Run();

            #endregion // Verify documents signed with different signature types

            #region Update signatures in the document

            //Update Text signature in the document after Search method
            UpdateText.Run();

            //Update Image signature in the document after Search method
            UpdateImage.Run();

            //Update Barcode signature in the document after Search method
            UpdateBarcode.Run();

            //Update QR-code signature in the document after Search method
            UpdateQRCode.Run();
            #endregion

            #region Delete signatures from document

            //Delete found Text signature in the document after Search method
            DeleteText.Run();

            //Delete found Image signature in the document after Search method
            DeleteImage.Run();

            //Delete found Barcode signature in the document after Search method
            DeleteBarcode.Run();

            //Delete found QR-code signature in the document after Search method
            DeleteQRCode.Run();

            //Delete few found multiple signatures in the document after Search method
            DeleteMultiple.Run();
            #endregion

            #endregion // Basic Usage

            #region Advanced Usage

            #region Loading
            LoadDocumentFromLocalDisk.Run();
            LoadDocumentFromStream.Run();
            LoadDocumentFromUrl.Run();
            //LoadDocumentFromAmazonS3.Run();
            //LoadDocumentFromAzureBlobStorage.Run();
            //LoadDocumentFromFtp.Run();
            LoadPasswordProtectedDocument.Run();

            #endregion

            #region Saving

            SaveSignedPdfWithDifferentOutputFileType.Run();
            SaveSignedSpreadsheetWithDifferentOutputFileType.Run();
            SaveSignedWordProcessingWithDifferentOutputFileType.Run();
            SaveSignedPresentationWithDifferentOutputFileType.Run();
            SaveSignedImageWithDifferentOutputFileType.Run();
            SaveSignedImageWithVariousOutputTypes.Run();

            SaveDocumentWithPassword.Run();
            SaveSignedDocumentsAsImages.Run();
            #endregion

            #region Document Preview with hiding signatures
            GeneratePreviewAdvanced.Run();
            GetDocumentInfoAdvanced.Run();
            GetDocumentProcessHistoryAdvanced.Run();
            #endregion

            #region Handling different special exceptions
            HandlingIncorrectPasswordException.Run();
            HandlingPasswordRequiredException.Run();
            #endregion

            #region Sign document with different signature types with additional options

            //Sign document with text signature applying specific options
            SignWithTextAdvanced.Run();

            //Sign document with digital signature applying specific options
            SignWithDigitalAdvanced.Run();

            //Sign Pdf document with digital time stamp
            SignWithDigitalAdvancedPdfTimestamp.Run();

            //Sign Pdf document with digital certificate
            SignWithDigitalAdvancedPdfCertificate.Run();

            //Sign Pdf document with digital certificate and custom appearance settings
            SignWithDigitalAdvancedPdfAppearance.Run();

            //Sign document with image signature applying specific options
            SignWithImageAdvanced.Run();

            //Sign document with Barcode signature applying specific options
            SignWithBarcodeAdvanced.Run();

            //Sign document with QR-Code signature applying specific options
            SignWithQRCodeAdvanced.Run();

            // Sign Pdf document with Form-fields
            SignPdfWithFormFieldAdvanced.Run();
            SignPdfWithFormFieldAdvancedRadio.Run();
            SignPdfWithFormFieldAdvancedCombobox.Run();

            // Sign Pdf document with Stamp signature
            SignWithStampAdvanced.Run();

            // Sign Spreadsheet document with XAdes signature
            SignWithXAdESTypes.Run();

            #endregion

            #region Sign with further result analysis
            SignWithResultAnalysis.Run();
            #endregion

            #region Sign with different signature implementation type
            SignWithTextStamp.Run();
            SignWithTextAnnotation.Run();
            SignWithTextImage.Run();
            SignWithTextSticker.Run();
            SignWithTextFormField.Run();
            SignWithTextWatermark.Run();
            SignWithTextWatermarkNative.Run();
            #endregion

            #region Sign QR-Code Encryption, Custom encryption, custom serialization
            SignWithQRCodeEncryptedText.Run();
            SignWithQRCodeEncryptedObject.Run();
            SignWithQRCodeCustomEncryptionObject.Run();
            SignWithQRCodeCustomSerializationObject.Run();
            #endregion

            #region Sign QR-Code standard objects
            SignWithQRCodeAddressObject.Run();
            SignWithQRCodeEmailObject.Run();
            SignWithQRCodeVCardObject.Run();
            SignWithQRCodeEPCObject.Run();
            SignWithQRCodeEventObject.Run();
            SignWithQRCodeMeCardObject.Run();
            #endregion

            #region Sign Metadata advanced
            //Sign document with Metadata signature applying specific options
            SignPdfWithStandardMetadata.Run();
            SignPdfWithCustomMetadata.Run();
            SignImageWithCustomMetadata.Run();

            SignWithMetadataEncryptedText.Run();
            SignWithMetadataEncryptedObject.Run();
            SignWithMetadataCustomEncryptionObject.Run();
            SignWithMetadataCustomSerializationObject.Run();
            #endregion

            #region Sign with different annotation
            SignWithPdfTextAnnotation.Run();
            SignWithPdfTextSticker.Run();
            SignWithImageAppearance.Run();
            SignWithDigitalAppearance.Run();

            #endregion

            #region Sign with different measure type
            SignWithMillimeters.Run();
            SignWithPercents.Run();
            SignWithAlignments.Run();
            #endregion

            SignWithStretchMode.Run();

            SignWithExceptionHandling.Run();

            #region Signing with different brush styles
            SignWithSolidBrush.Run();
            SignWithTextureBrush.Run();
            SignWithLinearGradientBrush.Run();
            SignWithRadialGradientBrush.Run();
            #endregion

            #region Search signed documents for different signature types with additional options

            //Search document for Text signature with applying specific options
            SearchForTextAdvanced.Run();

            //Search document for Image signature with applying specific options
            SearchForImageAdvanced.Run();

            //Search document for Barcode signature with applying specific options
            SearchForBarcodeAdvanced.Run();

            //Search document for encrypted QR-Code signature with applying specific options
            SearchForQRCodeAdvanced.Run();

            //Search document for digital signature with applying specific options
            SearchForDigitalAdvanced.Run();

            //Search document for form-field signature with applying specific options
            SearchForFormFieldAdvanced.Run();

            //Advanced search image document for metadata signatures
            SearchImageForMetadataAdvanced.Run();

            //Advanced search PDF document for metadata signatures
            SearchPdfForMetadataAdvanced.Run();

            //Advanced search Presentation document for metadata signatures
            SearchPresentationForMetadataAdvanced.Run();

            //Advanced search Spreadsheet document for metadata signatures
            SearchSpreadsheetForMetadataAdvanced.Run();

            //Advanced search WordProcessing document for metadata signatures
            SearchWordProcessingForMetadataAdvanced.Run();

            #region Search for QR-Code Encryption, Custom encryption, custom serialization
            SearchForMetadataEncryptedText.Run();
            SearchForMetadataEncryptedObject.Run();
            SearchForMetadataCustomEncryptionObject.Run();
            SearchForMetadataCustomSerializationObject.Run();
            #endregion

            #region Search for QR-Code standard objects
            SearchForQRCodeAddressObject.Run();
            SearchForQRCodeEmailObject.Run();
            SearchForQRCodeVCardObject.Run();
            SearchForQRCodeEPCObject.Run();
            SearchForQRCodeEventObject.Run();
            SearchForQRCodeMeCardObject.Run();
            #endregion

            SearchWithExceptionHandling.Run();
            #endregion // Search signed documents for different signature types with additional options

            #region Search for QR-Code Encryption, custom encryption, custom serialization
            SearchForQRCodeEncryptedText.Run();
            SearchForQRCodeEncryptedObject.Run();
            SearchForQRCodeCustomEncryptionObject.Run();
            SearchForQRCodeCustomSerializationObject.Run();
            #endregion

            SearchAndSkipExternalSignatures.Run();

            #region Verify signed documents with additional options

            //Verify document with Text signature with applying specific options
            VerifyTextAdvanced.Run();

            //Verify document with Barcode signature with applying specific options
            VerifyBarcodeAdvanced.Run();

            //Verify document with QR-Code signature with applying specific options
            VerifyQRCodeAdvanced.Run();

            //Verify document with digital signature with applying specific options
            VerifyDigitalAdvanced.Run();

            #endregion // Verify signed documents with additional options

            #region Subscribing for signing, verification, searching events
            SubscribeSignEvents.Run();
            SubscribeVerifyEvents.Run();
            SubscribeSearchEvents.Run();
            #endregion

            #region Cancellation of signing, verification, searching process
            CancellationSignProcess.Run();
            CancellationVerifyProcess.Run();
            CancellationSearchProcess.Run();
            #endregion

            VerifyWithExceptionHandling.Run();

            #region Updating document signatures
            UpdateTextAfterSearch.Run();
            UpdateTextById.Run();
            UpdateImageAfterSearch.Run();
            UpdateImageById.Run();
            UpdateBarcodeAfterSearch.Run();
            UpdateBarcodeById.Run();
            UpdateQRCodeAfterSearch.Run();
            UpdateQRCodeById.Run();
            UpdateMultipleAdvanced.Run();
            #endregion

            #region Delete signatures from the document
            DeleteTextAfterSearch.Run();
            DeleteTextById.Run();
            DeleteImageAfterSearch.Run();
            DeleteImageById.Run();
            DeleteBarcodeAfterSearch.Run();
            DeleteBarcodeById.Run();
            DeleteQRCodeAfterSearch.Run();
            DeleteQRCodeById.Run();
            DeleteDigitalAfterSearch.Run();
            DeleteDigitalById.Run();
            DeleteMultipleAdvanced.Run();
            #endregion

            #region Processing signatures over all CRUD operation to show full signature process life-cycle
            ProcessingTextSignatureOverCRUD.Run();
            ProcessingImageSignatureOverCRUD.Run();
            ProcessingBarcodeSignatureOverCRUD.Run();
            ProcessingQrCodeSignatureOverCRUD.Run();
            #endregion

            OptionsSerialization.Run();

            #endregion // Advanced Usage

            Console.WriteLine();
            Console.WriteLine("All done.");
            Console.ReadKey();
        }
Пример #26
0
 public async Task UpdateAsync(UpdateImage command, User user)
 {
     user.UserImage.Update(command.ImageContent);
     await _context.SaveChangesAsync();
 }
Пример #27
0
    //FillAmountUpdate
    static private UpdateImageProcess FillAmountUpdateUpdate(UpdateImageProcessState mine, UpdateImage updateImage)
    {
        if (updateImage.GetTimeCounter().measure(Time.deltaTime, updateImage.GetTimeRegulation()))
        {
            updateImage.GetImage().fillAmount = updateImage.GetTimeFlucts(0).InFluct(
                updateImage.GetTimeRegulation()
                , updateImage.GetImage().fillAmount
                , updateImage.GetEndFillAmount()
                , updateImage.GetTimeRegulation()
                );

            return(UpdateImageProcess.None);
        }
        else
        {
            updateImage.GetImage().fillAmount = updateImage.GetTimeFlucts(0).InFluct(
                updateImage.GetTimeCounter().count()
                , updateImage.GetImage().fillAmount
                , updateImage.GetEndFillAmount()
                , updateImage.GetTimeRegulation()
                );
        }

        return(mine.state_);
    }
Пример #28
0
 public UpdateImageProcess Update(UpdateImage updateImage)
 {
     return(updateFuncs_[(int)state_](this, updateImage));
 }
Пример #29
0
    //ChangeColor
    static private UpdateImageProcess ChangeColorUpdate(UpdateImageProcessState mine, UpdateImage updateImage)
    {
        if (updateImage.GetTimeCounter().measure(Time.deltaTime, updateImage.GetTimeRegulation()))
        {
            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateRed(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(0)
                , updateImage.GetChangeEndColor().r
                , updateImage.GetTimeRegulation()
                , updateImage.GetTimeRegulation()
                );

            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateGreen(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(1)
                , updateImage.GetChangeEndColor().g
                , updateImage.GetTimeRegulation()
                , updateImage.GetTimeRegulation()
                );

            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateBlue(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(2)
                , updateImage.GetChangeEndColor().b
                , updateImage.GetTimeRegulation()
                , updateImage.GetTimeRegulation()
                );

            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(3)
                , updateImage.GetChangeEndColor().a
                , updateImage.GetTimeRegulation()
                , updateImage.GetTimeRegulation()
                );

            return(UpdateImageProcess.None);
        }
        else
        {
            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateRed(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(0)
                , updateImage.GetChangeEndColor().r
                , updateImage.GetTimeCounter().count()
                , updateImage.GetTimeRegulation()
                );

            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateGreen(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(1)
                , updateImage.GetChangeEndColor().g
                , updateImage.GetTimeCounter().count()
                , updateImage.GetTimeRegulation()
                );

            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateBlue(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(2)
                , updateImage.GetChangeEndColor().b
                , updateImage.GetTimeCounter().count()
                , updateImage.GetTimeRegulation()
                );

            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(3)
                , updateImage.GetChangeEndColor().a
                , updateImage.GetTimeCounter().count()
                , updateImage.GetTimeRegulation()
                );
        }

        return(mine.state_);
    }
Пример #30
0
 //None
 static private UpdateImageProcess NoneUpdate(UpdateImageProcessState mine, UpdateImage updateImage)
 {
     return(mine.state_);
 }
Пример #31
0
 partial void PartialUpdate(UpdateImage updateImage)
 {
     PlotModel.Series.Clear();
     MatrixLayer <byte>[] layers = updateImage.Image.Split(false).Select(a => a.ToByteLayer(false)).ToArray();
     PartialCtor(null, layers);
 }
Пример #32
0
 void Up(Image I)
 {
     if (pictureBox1.InvokeRequired)
     {
         UpdateImage ui = new UpdateImage(Up);
         pictureBox1.Invoke(ui, I);
     }
     else
     {
         pictureBox1.Image = I;
     }
 }