I have A program where i want to print an image to the form( in this case a coin) But The Program wont let me do that. it stops at the last line the crash is ArgumentException
heres The Code:
Random _Random = new Random();
Image _CoinImage;
int height;
int width;
Graphics g;
public Coin(int Height,int Width,Graphics gr)
{
_CoinImage = Properties.Resources.Coin;
height = Height;
width = Width;
g = gr;//gr = the form paint
CoinRec = new Rectangle(0, 0, width, Height);
g.DrawImage(_CoinImage, CoinRec); //Crashes Here
}