A
A
Andrew2015-07-25 14:37:59
WPF
Andrew, 2015-07-25 14:37:59

How to copy Image?

In a WindowsForm, you can copy an image from one pictureBox to another like so:

pictureBox2.Image = (Bitmap)pictureBox1.Image.Clone();

Is it possible to do the same in WPF with an Image? How?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Makarov, 2015-07-25
@Nipheris

stackoverflow.com/questions/4118658/copy-bitmap-in...
In short: use CopyPixels to cast into an array, then create a WritableBitmap to cast the pixels from the array into it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question