Build bitmap from other images

  • Thread starter Thread starter Piotrekk
  • Start date Start date
P

Piotrekk

Hi

I would like to ask a question for which answer i couldn't find on
google. I need to dynamically create Bitmap image inserting smaller
parts at specified position. Does framework support such a thing?

PK
 
Piotrekk said:
Hi

I would like to ask a question for which answer i couldn't find on
google. I need to dynamically create Bitmap image inserting smaller
parts at specified position. Does framework support such a thing?

PK
Yes, you can "paint on" an existing image using a device context:

private static void PaintImage(Image canvas, Image img, PointF pos)
{
using(Graphics g = Graphics.FromImage(canvas))
g.DrawImage(img, pos);
}

HTH,
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top