Bitmap.SetResolution(Single, Single) 메서드

정의

이에 Bitmap대한 해상도를 설정합니다.

public:
 void SetResolution(float xDpi, float yDpi);
public void SetResolution(float xDpi, float yDpi);
member this.SetResolution : single * single -> unit
Public Sub SetResolution (xDpi As Single, yDpi As Single)

매개 변수

xDpi
Single

가로 해상도(인치당 점 수)입니다 Bitmap.

yDpi
Single

의 세로 해상도(인치당 점 수)입니다 Bitmap.

예외

작업이 실패했습니다.

예제

다음 예제 코드는 메서드를 사용하는 SetResolution 방법을 보여줍니다.

Bitmap bitmap = new Bitmap(100, 100);
bitmap.SetResolution(96.0F, 96.0F);
Dim bitmap As New Bitmap(100, 100) 
bitmap.SetResolution(96F, 96F)

설명

이 메서드를 사용하여 새로 만든 비트맵에서 원하는 해상도를 설정합니다. 이미지 해상도를 변경해도 실제 크기는 변경되지 않습니다.

적용 대상