How to add a picture from the folder "Resource Files" in the picturebox? I work with WinForms c ++ cli.
Is it possible to somehow draw the value of a variable, for example, int a=15; to add 15 as picture on picturebox?
|
1 answer
Figured out
Bitmap^ bmp = gcnew Bitmap(450, 350); Graphics^ g = Graphics::FromImage(bmp); // холст для рисования pictureBox1->Image = bmp; // закрепление к pictureBox Bitmap^ image1; // фото загрузки в pictureBox image1 = gcnew Bitmap("logo.bmp"); // инициализация файл с фото pictureBox1->Image = image1; |
