Introduction
Sometimes we need to rotate image in user control.
I override OnPaint method, and use Graphics.RotateTransform to rotate image.
Source Code
Image
上三图分别为旋转0度30度以及90度
Introduction
Sometimes we need to rotate image in user control.
I override OnPaint method, and use Graphics.RotateTransform to rotate image.
Source Code
Image
上三图分别为旋转0度30度以及90度