public static async Task <byte[]> GetProfile(User user, string username, byte[] avatar) { //get multiplier fontMultiplier = user.fontMultiplier; //Get font await GetProperties(user); //Draw, optimise and return return(await CompressFile.CompressGifAsync(await DrawAsync(user.Id, username, avatar))); }
public static async Task <byte[]> MakeLevelAsync(ulong id) { //get location of image location = $"{Program.Rootdir}\\Users\\LevelUp\\{id}.gif"; //get multiplier fontMultiplier = Program.Users.GetValueOrDefault(id).fontMultiplier; //load font await GetFont(id); //load hex await GetHex(id); //load the image await LoadImage(); //complete await Draw(id); outputArray = await CompressFile.CompressGifAsync(outputArray); return(outputArray); }