Exemple #1
0
        public override ResourceData FromResource(ResourceLang lang, byte[] data)
        {
            if (lang == null)
            {
                throw new ArgumentNullException(nameof(lang));
            }

            var isIcon = lang.Name.Type.Identifier.KnownType == Win32ResourceType.IconImage;

            return(IconCursorImageResourceData.TryCreate(isIcon, lang, data, out var rd) ? rd : null);
        }
Exemple #2
0
 public IconCursorImageResourceData FromFileData(ResourceLang lang, byte[] data, bool isIcon)
 {
     return(IconCursorImageResourceData.TryCreate(isIcon, lang, data, out var rd) ? rd : null);
 }