rotate image using rotateflip in C#
<p>I have this code to rotate an image in an if loop in C# windows form application, but the form does not show anything in the form output, Can anyone help?</p>

<pre><code>this.splitContainer1.Panel2.Controls.Add(PictureBox1);
PictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
PictureBox1.Image = bitmap;// Image.FromFile(@"C:\image.jpg");
PictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
PictureBox1.Image = (Image)(RotateImg(bitmap, 30.0f, Color.Transparent));
</code></pre>
