private void SoundSetForm_Paint(object sender, PaintEventArgs e)
{
loadBaseImage();
}
public void loadBaseImage()
{
g = this.CreateGraphics();
photoManager.DrawImageHelper.DrawSrcImage(offBitmap, photoManager.SoundSet.SoundSetBitMapImage.BgImage, photoManager.SoundSet.SoundSetPoint.BgPoint);
if (isLaOpen)
{
photoManager.DrawImageHelper.DrawImage(photoManager.SoundSet.SoundSetBitMapImage.OpenSoundImage, photoManager.SoundSet.SoundSetPoint.LbPoint, "");
}
else
{
photoManager.DrawImageHelper.DrawImage(photoManager.SoundSet.SoundSetBitMapImage.HidenSoudImage, photoManager.SoundSet.SoundSetPoint.LbPoint, "");
}
drawPreSoundImage();
photoManager.DrawImageHelper.DrawImage(photoManager.SoundSet.SoundSetBitMapImage.SoundPreImage, photoManager.SoundSet.SoundSetPoint.PrePoint, "");
photoManager.DrawImageHelper.DrawImage(photoManager.SoundSet.SoundSetBitMapImage.SoundNextImage, photoManager.SoundSet.SoundSetPoint.NextPoint, "");
photoManager.DrawImageHelper.DrawImage(photoManager.SoundSet.SoundSetBitMapImage.EnterImage, photoManager.SoundSet.SoundSetPoint.EnterPoint, "");
photoManager.DrawImageHelper.DrawImage(photoManager.SoundSet.SoundSetBitMapImage.BackImage, photoManager.SoundSet.SoundSetPoint.BackPoint, "");
g.DrawImage(offBitmap, 0, 0);
g.Dispose();
}
本人不知道什么叫重绘,但是可以直接调用一个最基本的方法重新绘制