Class Version45UpgradeHelper
Namespace: Aurigma.DesignAtoms.Serialization.Json
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class Version45UpgradeHelper
Inheritance: System.Object -> Version45UpgradeHelper
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
Version45UpgradeHelper
public Version45UpgradeHelper()
Methods
UpgradeSourceRectangle
public static void UpgradeSourceRectangle(JObject itemJObject)
Parameters
| Type | Name | Description |
|---|---|---|
Newtonsoft.Json.Linq.JObject | itemJObject |
UpgradeRectangle
public static void UpgradeRectangle(JObject itemJObject, string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
Newtonsoft.Json.Linq.JObject | itemJObject | |
System.String | propertyName |
UpgradeRotation<T>
public static PointF UpgradeRotation<T>(JObject itemJObject, JsonSerializer serializer, ILifetimeScope scope, string skipAlgorithmName)
where T : BaseTextItem
Parameters
| Type | Name | Description |
|---|---|---|
Newtonsoft.Json.Linq.JObject | itemJObject | |
Newtonsoft.Json.JsonSerializer | serializer | |
Autofac.ILifetimeScope | scope | |
System.String | skipAlgorithmName |
Returns
Aurigma.DesignAtoms.Model.Math.PointF
SetPrintAreaTransform
public static void SetPrintAreaTransform(JObject itemJObject, float translateX, float translateY)
Parameters
| Type | Name | Description |
|---|---|---|
Newtonsoft.Json.Linq.JObject | itemJObject | |
System.Single | translateX | |
System.Single | translateY |
ApplyPrintAreaTransform
public static void ApplyPrintAreaTransform(JObject itemJObject, string from)
Parameters
| Type | Name | Description |
|---|---|---|
Newtonsoft.Json.Linq.JObject | itemJObject | |
System.String | from |