public Face(string filename, uint segCacheMaxSize, FaceOptions options) { if (!File.Exists(filename)) throw new ArgumentException("filename"); _face = Graphite2Api.MakeFileFaceWithSegCache(filename, segCacheMaxSize, options); if (_face == IntPtr.Zero) throw new ArgumentException("filename is not a graphite font"); }
public bool DeepEquals(DestinyCharacterCustomizationOptionDefinition other) { return(other != null && DisplayProperties.DeepEquals(other.DisplayProperties) && Gender.DeepEquals(other.Gender) && Race.DeepEquals(other.Race) && DecalColorOptions.DeepEquals(other.DecalColorOptions) && DecalOptions.DeepEquals(other.DecalOptions) && EyeColorOptions.DeepEquals(other.EyeColorOptions) && FaceOptionCinematicHostPatternIds.DeepEqualsReadOnlySimpleCollection(other.FaceOptionCinematicHostPatternIds) && FaceOptions.DeepEquals(other.FaceOptions) && FeatureColorOptions.DeepEquals(other.FeatureColorOptions) && FeatureOptions.DeepEquals(other.FeatureOptions) && HairColorOptions.DeepEquals(other.HairColorOptions) && HairOptions.DeepEquals(other.HairOptions) && HelmetPreferences.DeepEquals(other.HelmetPreferences) && LipColorOptions.DeepEquals(other.LipColorOptions) && PersonalityOptions.DeepEquals(other.PersonalityOptions) && SkinColorOptions.DeepEquals(other.SkinColorOptions) && Blacklisted == other.Blacklisted && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
internal static extern /*gr_face*/ IntPtr MakeFileFaceWithSegCache(string filename, uint segCacheMaxSize, FaceOptions faceOptions);
internal static extern /*gr_face*/ IntPtr MakeFileFace(string filename, FaceOptions faceOptions);
internal static extern IntPtr MakeFileFaceWithSegCache(string filename, uint segCacheMaxSize, FaceOptions faceOptions);
internal static extern IntPtr MakeFileFace(string filename, FaceOptions faceOptions);
public FaceApp(IOptions <FaceOptions> faceOptions, ILogger <FaceApp> logger) { _faceOptions = faceOptions?.Value ?? throw new ArgumentNullException(nameof(faceOptions)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }