setup variables for commands
echo -e "\n
export image=redroid/redroid:11.0.0-amd64
export image_tar=${HOME}/redroid:11.0.0-amd64" >> ${HOME}/.bashrc
source ${HOME}/.bashrcecho -e "\n
export image=redroid/redroid:11.0.0-amd64
export image_tar=${HOME}/redroid:11.0.0-amd64" >> ${HOME}/.bashrc
source ${HOME}/.bashrc| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Http; | |
| using Microsoft.AspNetCore.Localization; | |
| using Microsoft.AspNetCore.RequestLocalization; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Primitives; |
| /// <summary> | |
| /// Converting text to image (png). | |
| /// </summary> | |
| /// <param name="text">text to convert</param> | |
| /// <param name="font">Font to use</param> | |
| /// <param name="textColor">text color</param> | |
| /// <param name="maxWidth">max width of the image</param> | |
| /// <param name="path">path to save the image</param> | |
| public static void DrawText(String text, Font font, Color textColor,int maxWidth,String path) | |
| { |