You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.5 KiB
82 lines
2.5 KiB
using System; |
|
using System.Collections.Generic; |
|
|
|
namespace Kingo.Framework.LayerStyleConvert.XSDClass |
|
{ |
|
// Token: 0x02000085 RID: 133 |
|
public class CIMTiledPattern : CIMPattern |
|
{ |
|
// Token: 0x170001AF RID: 431 |
|
// (get) Token: 0x060004D9 RID: 1241 RVA: 0x000194E8 File Offset: 0x000176E8 |
|
// (set) Token: 0x060004DA RID: 1242 RVA: 0x000194FF File Offset: 0x000176FF |
|
public string Url { get; set; } |
|
|
|
// Token: 0x170001B0 RID: 432 |
|
// (get) Token: 0x060004DB RID: 1243 RVA: 0x00019508 File Offset: 0x00017708 |
|
// (set) Token: 0x060004DC RID: 1244 RVA: 0x0001951F File Offset: 0x0001771F |
|
public int ScaleX { get; set; } |
|
|
|
// Token: 0x170001B1 RID: 433 |
|
// (get) Token: 0x060004DD RID: 1245 RVA: 0x00019528 File Offset: 0x00017728 |
|
// (set) Token: 0x060004DE RID: 1246 RVA: 0x0001953F File Offset: 0x0001773F |
|
public double Height { get; set; } |
|
|
|
// Token: 0x170001B2 RID: 434 |
|
// (get) Token: 0x060004DF RID: 1247 RVA: 0x00019548 File Offset: 0x00017748 |
|
// (set) Token: 0x060004E0 RID: 1248 RVA: 0x0001955F File Offset: 0x0001775F |
|
public string TextureFilter { get; set; } |
|
|
|
// Token: 0x170001B3 RID: 435 |
|
// (get) Token: 0x060004E1 RID: 1249 RVA: 0x00019568 File Offset: 0x00017768 |
|
// (set) Token: 0x060004E2 RID: 1250 RVA: 0x0001957F File Offset: 0x0001777F |
|
public string WrapX { get; set; } |
|
|
|
// Token: 0x170001B4 RID: 436 |
|
// (get) Token: 0x060004E3 RID: 1251 RVA: 0x00019588 File Offset: 0x00017788 |
|
// (set) Token: 0x060004E4 RID: 1252 RVA: 0x0001959F File Offset: 0x0001779F |
|
public string WrapY { get; set; } |
|
|
|
// Token: 0x170001B5 RID: 437 |
|
// (get) Token: 0x060004E5 RID: 1253 RVA: 0x000195A8 File Offset: 0x000177A8 |
|
// (set) Token: 0x060004E6 RID: 1254 RVA: 0x000195BF File Offset: 0x000177BF |
|
public List<ColorSubstitution> ColorSubstitutions { get; set; } |
|
|
|
// Token: 0x060004E7 RID: 1255 RVA: 0x000195C8 File Offset: 0x000177C8 |
|
public CIMTiledPattern() |
|
{ |
|
base.Type = "CIMTiledPattern"; |
|
this.ScaleX = 1; |
|
this.TextureFilter = "Draft"; |
|
this.WrapX = "Repeat"; |
|
this.WrapY = "Repeat"; |
|
this.ColorSubstitutions = new List<ColorSubstitution>(); |
|
} |
|
|
|
// Token: 0x060004E8 RID: 1256 RVA: 0x00019624 File Offset: 0x00017824 |
|
public byte[] GetImageData() |
|
{ |
|
byte[] result; |
|
if (string.IsNullOrEmpty(this.Url)) |
|
{ |
|
result = null; |
|
} |
|
else |
|
{ |
|
string[] array = this.Url.Split(new char[] |
|
{ |
|
';', |
|
',' |
|
}); |
|
if (array.Length == 3) |
|
{ |
|
result = Convert.FromBase64String(array[2]); |
|
} |
|
else |
|
{ |
|
result = null; |
|
} |
|
} |
|
return result; |
|
} |
|
} |
|
}
|
|
|