Print at Dec 17, 2025, 8:02:32 AM

Posted by Nana111 at Jan 20, 2014, 1:57:10 AM
Re: How to rotate a background image 90 deg and copy it from one file to another
HI there
If you want to rotate the image,you can just refer to this code:
namespace RE__Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
string fileName = "c:/Sample.png";

REImage reImage = REFile.OpenImageFile(fileName);

ImageProcessing.ApplyRotate(reImage, 60);

REFile.SaveImageFile(reImage, "c:/reimage.png", new PNGEncoder());