Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
InteralImageEventArgs.cs
1using SkiaSharp;
2using System;
3
5{
9 public class InteralImageEventArgs : EventArgs
10 {
11 private readonly Layout2DDocument doc;
12 private readonly string contentId;
13 private SKImage image = null;
14
20 public InteralImageEventArgs(Layout2DDocument Document, string ContentId)
21 : base()
22 {
23 this.doc = Document;
24 this.contentId = ContentId;
25 }
26
30 public Layout2DDocument Document => this.doc;
31
35 public string ContentId => this.contentId;
36
40 public SKImage Image => this.image;
41
45 public bool HasImage => !(this.image is null);
46
51 public void SetImage(SKImage Image)
52 {
53 this.image?.Dispose();
54 this.image = Image;
55 }
56 }
57}
Event raised when the layout model has been updated internally.
InteralImageEventArgs(Layout2DDocument Document, string ContentId)
Event raised when the layout model has been updated internally.
void SetImage(SKImage Image)
Sets the image to return for the event.
Layout2DDocument Document
Document that has been updated.
Contains a 2D layout document.