I
I
iRumba2015-02-08 19:05:01
.NET
iRumba, 2015-02-08 19:05:01

How to draw a picture in memory?

Hello. It is difficult for me to formulate the question correctly, but I will try, maybe you will understand what I mean. Is System::Drawing::Graphics created, for example PictureBox'om. I draw on it using the Draw... and Fill... methods, the image immediately appears on the screen. And I want to create a virtual object on which I will create an image with the ability to transfer it to the control I need.
What is it for me? I want to create a brush with the properties I need (whether it's an ellipse, or a rectangle of the right size, or even a picture loaded from a file), and then draw it on the PictureBox.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pukhov, 2015-02-09
@Neuroware

if in a nutshell you need to create a bitmap object, from which you already create Graphics and draw on it, and display the result in picturebox or on graphics from picturebox make draw what is in that bitmap. I advise you to google about drawing 2d c++

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question