Esempio n. 1
0
        /// <summary>
        /// Init.
        /// </summary>
        /// <param name="loadCompleteCallback">callback raised when image load process is complete with image or without</param>
        public ImageLoadHandler(Action <Image, Rectangle, bool> loadCompleteCallback)
        {
            ArgChecker.AssertArgNotNull(loadCompleteCallback, "loadCompleteCallback");

            _loadCompleteCallback = loadCompleteCallback;
        }
Esempio n. 2
0
        /// <summary>
        /// Adds a font family to be used.
        /// </summary>
        /// <param name="fontFamily">The font family to add.</param>
        public static void AddFontFamily(FontFamily fontFamily)
        {
            ArgChecker.AssertArgNotNull(fontFamily, "family");

            _existingFontFamilies[fontFamily.Name] = fontFamily;
        }