/// <summary>
/// 확대 퍼센트 변수
/// 기본 값 500%
/// </summary>
double dZoomPercent = 500;
_img = bmp as Image;
Bitmap ConvertImg = new Bitmap(_img, (int)(_img.Size.Width*dZoomPercent/100), (int)(_img.Size.Height*dZoomPercent/100));
_form.BackgroundImage = ConvertImg;
반응형
'Language > C#' 카테고리의 다른 글
| WPF usercontrol을 winform에서 사용하기 (0) | 2016.02.04 |
|---|---|
| 정규식 패턴 (0) | 2016.02.04 |
| MSChart Control 설치방법 (0) | 2016.02.04 |
| Microsoft Public License (MS-PL) (0) | 2016.02.04 |
| Winform에서 키 이벤트 안먹음 (0) | 2016.02.04 |