hawkeye camera support(not tested)
This commit is contained in:
@@ -41,4 +41,20 @@ public class ImageSizeProportionOperation:BaseOperation
|
||||
Width = br.ReadDouble();
|
||||
Height = br.ReadDouble();
|
||||
}
|
||||
|
||||
public override void Save(Dictionary<string, object> dict)
|
||||
{
|
||||
base.Save(dict);
|
||||
dict[nameof(Width)] = Width;
|
||||
dict[nameof(Height)] = Height;
|
||||
}
|
||||
|
||||
public override void Load(Dictionary<string, object> dict)
|
||||
{
|
||||
base.Load(dict);
|
||||
if (dict.ContainsKey(nameof(Width)))
|
||||
Width = Convert.ToDouble(dict[nameof(Width)]);
|
||||
if (dict.ContainsKey(nameof(Height)))
|
||||
Height = Convert.ToDouble(dict[nameof(Height)]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user