0

In c# how can I crop a part of a picture like they do in minecraft

example

thanks in advance

Matthewj
  • 1,932
  • 6
  • 26
  • 37

1 Answers1

2

Use one of the Graphics.DrawImage overloads that allows you to select just part of the source, for example http://msdn.microsoft.com/en-us/library/ms142040.aspx

Draws the specified portion of the specified Image at the specified location and with the specified size.

Ben Voigt
  • 277,958
  • 43
  • 419
  • 720