Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 internal static extern /*gr_face*/ IntPtr MakeFileFaceWithSegCache(string filename, uint segCacheMaxSize, FaceOptions faceOptions);
Exemplo n.º 4
0
 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);
Exemplo n.º 7
0
 public FaceApp(IOptions <FaceOptions> faceOptions, ILogger <FaceApp> logger)
 {
     _faceOptions = faceOptions?.Value ?? throw new ArgumentNullException(nameof(faceOptions));
     _logger      = logger ?? throw new ArgumentNullException(nameof(logger));
 }