- Joined
- Jul 31, 2012
- Messages
- 490
- Reaction score
- 92
Hi, a lot of people are now programming their website in ASP NET.
So I have overwritten the function from the programmer = Master = to that language.
The feature will display you on the guild logo pages.
I apologize for my English.
Calling a function is easy
The feature is tested for the VS 2017.
* Do not convert from binary data to hexadecimal data!
So I have overwritten the function from the programmer = Master = to that language.
The feature will display you on the guild logo pages.
I apologize for my English.
PHP:
public string GuildLogo(string hex, int xy)
{
string[] color = new string[255];
color['0'] = "";
color['1'] = "#000000";
color['2'] = "#8c8a8d";
color['3'] = "#ffffff";
color['4'] = "#fe0000";
color['5'] = "#ff8a00";
color['6'] = "#ffff00";
color['7'] = "#8cff01";
color['8'] = "#00ff00";
color['9'] = "#01ff8d";
color['A'] = "#00ffff";
color['B'] = "#008aff";
color['C'] = "#0000fe";
color['D'] = "#8c00ff";
color['E'] = "#ff00fe";
color['F'] = "#ff008c";
int i = 0;
int k = 0;
string table = $"<table style='width: {8 * xy}px; height:{8 * xy}px' border=1 cellpadding=0 cellspacing=0><tr>";
while (i < 64)
{
char place = hex[i];
i++;
k++;
string add = color[place];
table += $"<td class='guildlogo' style='background-color: {add}' width='{xy}' height='{xy}'></td>";
if (k == 8)
{
table += "</tr>";
if (k != 64)
{
table += "<tr>";
}
k = 0;
}
}
table += "</table>";
return table;
}
Calling a function is easy
PHP:
string gLogo = GuildLogo("*the variable for the G_Mark column in your database.", "logo dimensions");
The feature is tested for the VS 2017.
* Do not convert from binary data to hexadecimal data!
Last edited: