- DrawLine으로 선을 그릴 때 일반 선이 아닌 이미지로 그리려고 합니다.
Bitmap bmp = new Bitmap(@“D:\Road.jpg”);
TextureBrush tb = new TextureBrush(bmp);
g.DrawLines(tb, points);
g.FillRectangle(tb, 45, 45, 70, 150);
bmp.Dispose();
tb.Dispose();
- 선이 아닌 도로를 그리고 싶습니다.
Bitmap bmp = new Bitmap(@“D:\Road.jpg”);
TextureBrush tb = new TextureBrush(bmp);
g.DrawLines(tb, points);
g.FillRectangle(tb, 45, 45, 70, 150);
bmp.Dispose();
tb.Dispose();
아래 문서를 참고해보세요.