다음을 통해 공유


Canvas.DrawBitmap 메서드

정의

오버로드

DrawBitmap(Int32[], Int32, Int32, Single, Single, Int32, Int32, Boolean, Paint)
사용되지 않음.

지정된 색 배열을 비트맵으로 처리하고 그립니다.

DrawBitmap(Int32[], Int32, Int32, Int32, Int32, Int32, Int32, Boolean, Paint)
사용되지 않음.

drawBitmap(int[] 색의 레거시 버전, .

DrawBitmap(Bitmap, Single, Single, Paint)

현재 행렬로 변환된 지정된 페인트를 사용하여 지정된 비트맵을 위쪽/왼쪽 모서리(x,y)로 그립니다.

DrawBitmap(Bitmap, Rect, Rect, Paint)

지정된 비트맵을 그려 대상 사각형을 채우도록 자동으로 크기 조정/변환합니다.

DrawBitmap(Bitmap, Matrix, Paint)

지정된 행렬을 사용하여 비트맵을 그립니다.

DrawBitmap(Bitmap, Rect, RectF, Paint)

지정된 비트맵을 그려 대상 사각형을 채우도록 자동으로 크기 조정/변환합니다.

DrawBitmap(Int32[], Int32, Int32, Single, Single, Int32, Int32, Boolean, Paint)

주의

deprecated

지정된 색 배열을 비트맵으로 처리하고 그립니다.

[Android.Runtime.Register("drawBitmap", "([IIIFFIIZLandroid/graphics/Paint;)V", "GetDrawBitmap_arrayIIIFFIIZLandroid_graphics_Paint_Handler")]
[System.Obsolete("deprecated")]
public virtual void DrawBitmap (int[] colors, int offset, int stride, float x, float y, int width, int height, bool hasAlpha, Android.Graphics.Paint? paint);
[<Android.Runtime.Register("drawBitmap", "([IIIFFIIZLandroid/graphics/Paint;)V", "GetDrawBitmap_arrayIIIFFIIZLandroid_graphics_Paint_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member DrawBitmap : int[] * int * int * single * single * int * int * bool * Android.Graphics.Paint -> unit
override this.DrawBitmap : int[] * int * int * single * single * int * int * bool * Android.Graphics.Paint -> unit

매개 변수

colors
Int32[]

비트맵의 픽셀을 나타내는 색 배열

offset
Int32

첫 번째 픽셀에 대한 색 배열로 오프셋

stride
Int32

행 사이의 배열에 있는 색 수입니다(너비 = 너비 또는 <=-width여야 >합니다).

x
Single

비트맵을 그릴 위치에 대한 X 좌표

y
Single

비트맵을 그릴 위치에 대한 Y 좌표입니다.

width
Int32

비트맵의 너비

height
Int32

비트맵의 높이

hasAlpha
Boolean

True이면 색의 알파 채널에 유효한 값이 포함됩니다. false이면 알파 바이트는 무시됩니다(모든 픽셀에 대해 0xFF 것으로 가정).

paint
Paint

null일 수 있습니다. 비트맵을 그리는 데 사용되는 페인트입니다.

특성

설명

지정된 색 배열을 비트맵으로 처리하고 그립니다. 이렇게 하면 배열에서 비트맵을 만든 다음 그리는 것과 동일한 결과가 표시되지만, 이 메서드는 색이 자주 변경되는 경우 더 효율적일 수 있는 비트맵 개체를 명시적으로 만들지 않습니다.

이 멤버는 더 이상 사용되지 않습니다. 캔버스를 #isHardwareAccelerated() hardware accelerated 사용하려면 이 메서드를 호출할 때마다 색 버퍼 콘텐츠의 내부 복사본이 필요합니다. 비트맵을 사용하면 이 복사본이 방지되고 애플리케이션에서 픽셀 데이터의 수명 및 복사본을 보다 명시적으로 제어할 수 있습니다.

에 대한 android.graphics.Canvas.drawBitmap(int[], int, int, float, float, int, int, boolean, android.graphics.Paint)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

DrawBitmap(Int32[], Int32, Int32, Int32, Int32, Int32, Int32, Boolean, Paint)

주의

deprecated

drawBitmap(int[] 색의 레거시 버전, .

[Android.Runtime.Register("drawBitmap", "([IIIIIIIZLandroid/graphics/Paint;)V", "GetDrawBitmap_arrayIIIIIIIZLandroid_graphics_Paint_Handler")]
[System.Obsolete("deprecated")]
public virtual void DrawBitmap (int[] colors, int offset, int stride, int x, int y, int width, int height, bool hasAlpha, Android.Graphics.Paint? paint);
[<Android.Runtime.Register("drawBitmap", "([IIIIIIIZLandroid/graphics/Paint;)V", "GetDrawBitmap_arrayIIIIIIIZLandroid_graphics_Paint_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member DrawBitmap : int[] * int * int * int * int * int * int * bool * Android.Graphics.Paint -> unit
override this.DrawBitmap : int[] * int * int * int * int * int * int * bool * Android.Graphics.Paint -> unit

매개 변수

colors
Int32[]
offset
Int32
stride
Int32
x
Int32
y
Int32
width
Int32
height
Int32
hasAlpha
Boolean
paint
Paint

비트맵을 그리는 데 사용되는 페인트입니다(null일 수 있음).

특성

설명

x,y에 대한 ints를 사용한 drawBitmap(int[] colors, ...)의 레거시 버전

이 멤버는 더 이상 사용되지 않습니다. 캔버스를 #isHardwareAccelerated() hardware accelerated 사용하려면 이 메서드를 호출할 때마다 색 버퍼 콘텐츠의 내부 복사본이 필요합니다. 비트맵을 사용하면 이 복사본이 방지되고 애플리케이션에서 픽셀 데이터의 수명 및 복사본을 보다 명시적으로 제어할 수 있습니다.

에 대한 android.graphics.Canvas.drawBitmap(int[], int, int, int, int, int, int, boolean, android.graphics.Paint)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

DrawBitmap(Bitmap, Single, Single, Paint)

현재 행렬로 변환된 지정된 페인트를 사용하여 지정된 비트맵을 위쪽/왼쪽 모서리(x,y)로 그립니다.

[Android.Runtime.Register("drawBitmap", "(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V", "GetDrawBitmap_Landroid_graphics_Bitmap_FFLandroid_graphics_Paint_Handler")]
public virtual void DrawBitmap (Android.Graphics.Bitmap bitmap, float left, float top, Android.Graphics.Paint? paint);
[<Android.Runtime.Register("drawBitmap", "(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V", "GetDrawBitmap_Landroid_graphics_Bitmap_FFLandroid_graphics_Paint_Handler")>]
abstract member DrawBitmap : Android.Graphics.Bitmap * single * single * Android.Graphics.Paint -> unit
override this.DrawBitmap : Android.Graphics.Bitmap * single * single * Android.Graphics.Paint -> unit

매개 변수

bitmap
Bitmap

그릴 비트맵

left
Single

그려지는 비트맵의 왼쪽 위치입니다.

top
Single

그려지는 비트맵의 위쪽 위치입니다.

paint
Paint

비트맵을 그리는 데 사용되는 페인트입니다(null일 수 있음).

특성

설명

현재 행렬로 변환된 지정된 페인트를 사용하여 지정된 비트맵을 위쪽/왼쪽 모서리(x,y)로 그립니다.

참고: 페인트에 비트맵의 원래 너비/높이(예: BlurMaskFilter)를 넘어 확장되는 마스크를 생성하는 마스크 필터가 포함된 경우 비트맵은 CLAMP 모드의 셰이더에 있는 것처럼 그려집니다. 따라서 원래 너비/높이 외부의 색은 복제된 에지 색이 됩니다.

비트맵과 캔버스의 밀도가 다른 경우 이 함수는 캔버스와 동일한 밀도로 그리도록 비트맵의 크기를 자동으로 조정합니다.

에 대한 android.graphics.Canvas.drawBitmap(android.graphics.Bitmap, float, float, android.graphics.Paint)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

DrawBitmap(Bitmap, Rect, Rect, Paint)

지정된 비트맵을 그려 대상 사각형을 채우도록 자동으로 크기 조정/변환합니다.

[Android.Runtime.Register("drawBitmap", "(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V", "GetDrawBitmap_Landroid_graphics_Bitmap_Landroid_graphics_Rect_Landroid_graphics_Rect_Landroid_graphics_Paint_Handler")]
public virtual void DrawBitmap (Android.Graphics.Bitmap bitmap, Android.Graphics.Rect? src, Android.Graphics.Rect dst, Android.Graphics.Paint? paint);
[<Android.Runtime.Register("drawBitmap", "(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V", "GetDrawBitmap_Landroid_graphics_Bitmap_Landroid_graphics_Rect_Landroid_graphics_Rect_Landroid_graphics_Paint_Handler")>]
abstract member DrawBitmap : Android.Graphics.Bitmap * Android.Graphics.Rect * Android.Graphics.Rect * Android.Graphics.Paint -> unit
override this.DrawBitmap : Android.Graphics.Bitmap * Android.Graphics.Rect * Android.Graphics.Rect * Android.Graphics.Paint -> unit

매개 변수

bitmap
Bitmap

그릴 비트맵

src
Rect

null일 수 있습니다. 그릴 비트맵의 하위 집합입니다.

dst
Rect

비트맵의 크기를 조정/변환할 사각형입니다.

paint
Paint

null일 수 있습니다. 비트맵을 그리는 데 사용되는 페인트입니다.

특성

설명

지정된 비트맵을 그려 대상 사각형을 채우도록 자동으로 크기 조정/변환합니다. 원본 사각형이 null이 아니면 그릴 비트맵의 하위 집합을 지정합니다.

참고: 페인트에 비트맵의 원래 너비/높이(예: BlurMaskFilter)를 넘어 확장되는 마스크를 생성하는 마스크 필터가 포함된 경우 비트맵은 CLAMP 모드의 셰이더에 있는 것처럼 그려집니다. 따라서 원래 너비/높이 외부의 색은 복제된 에지 색이 됩니다.

이 함수 <em>은 비트맵</em과 연결된 밀도를 무시합니다>. 원본 및 대상 사각형 좌표 공간은 해당 밀도에 있으므로 적절한 배율 인수가 이미 적용되어 있어야 하기 때문입니다.

에 대한 android.graphics.Canvas.drawBitmap(android.graphics.Bitmap, android.graphics.Rect, android.graphics.Rect, android.graphics.Paint)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

DrawBitmap(Bitmap, Matrix, Paint)

지정된 행렬을 사용하여 비트맵을 그립니다.

[Android.Runtime.Register("drawBitmap", "(Landroid/graphics/Bitmap;Landroid/graphics/Matrix;Landroid/graphics/Paint;)V", "GetDrawBitmap_Landroid_graphics_Bitmap_Landroid_graphics_Matrix_Landroid_graphics_Paint_Handler")]
public virtual void DrawBitmap (Android.Graphics.Bitmap bitmap, Android.Graphics.Matrix matrix, Android.Graphics.Paint? paint);
[<Android.Runtime.Register("drawBitmap", "(Landroid/graphics/Bitmap;Landroid/graphics/Matrix;Landroid/graphics/Paint;)V", "GetDrawBitmap_Landroid_graphics_Bitmap_Landroid_graphics_Matrix_Landroid_graphics_Paint_Handler")>]
abstract member DrawBitmap : Android.Graphics.Bitmap * Android.Graphics.Matrix * Android.Graphics.Paint -> unit
override this.DrawBitmap : Android.Graphics.Bitmap * Android.Graphics.Matrix * Android.Graphics.Paint -> unit

매개 변수

bitmap
Bitmap

그릴 비트맵

matrix
Matrix

비트맵을 그릴 때 변환하는 데 사용되는 행렬입니다.

paint
Paint

null일 수 있습니다. 비트맵을 그리는 데 사용되는 페인트입니다.

특성

설명

지정된 행렬을 사용하여 비트맵을 그립니다.

에 대한 android.graphics.Canvas.drawBitmap(android.graphics.Bitmap, android.graphics.Matrix, android.graphics.Paint)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

DrawBitmap(Bitmap, Rect, RectF, Paint)

지정된 비트맵을 그려 대상 사각형을 채우도록 자동으로 크기 조정/변환합니다.

[Android.Runtime.Register("drawBitmap", "(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/RectF;Landroid/graphics/Paint;)V", "GetDrawBitmap_Landroid_graphics_Bitmap_Landroid_graphics_Rect_Landroid_graphics_RectF_Landroid_graphics_Paint_Handler")]
public virtual void DrawBitmap (Android.Graphics.Bitmap bitmap, Android.Graphics.Rect? src, Android.Graphics.RectF dst, Android.Graphics.Paint? paint);
[<Android.Runtime.Register("drawBitmap", "(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/RectF;Landroid/graphics/Paint;)V", "GetDrawBitmap_Landroid_graphics_Bitmap_Landroid_graphics_Rect_Landroid_graphics_RectF_Landroid_graphics_Paint_Handler")>]
abstract member DrawBitmap : Android.Graphics.Bitmap * Android.Graphics.Rect * Android.Graphics.RectF * Android.Graphics.Paint -> unit
override this.DrawBitmap : Android.Graphics.Bitmap * Android.Graphics.Rect * Android.Graphics.RectF * Android.Graphics.Paint -> unit

매개 변수

bitmap
Bitmap

그릴 비트맵

src
Rect

null일 수 있습니다. 그릴 비트맵의 하위 집합입니다.

dst
RectF

비트맵의 크기를 조정/변환할 사각형입니다.

paint
Paint

null일 수 있습니다. 비트맵을 그리는 데 사용되는 페인트입니다.

특성

설명

지정된 비트맵을 그려 대상 사각형을 채우도록 자동으로 크기 조정/변환합니다. 원본 사각형이 null이 아니면 그릴 비트맵의 하위 집합을 지정합니다.

참고: 페인트에 비트맵의 원래 너비/높이(예: BlurMaskFilter)를 넘어 확장되는 마스크를 생성하는 마스크 필터가 포함된 경우 비트맵은 CLAMP 모드의 셰이더에 있는 것처럼 그려집니다. 따라서 원래 너비/높이 외부의 색은 복제된 에지 색이 됩니다.

이 함수 <em>은 비트맵</em과 연결된 밀도를 무시합니다>. 원본 및 대상 사각형 좌표 공간은 해당 밀도에 있으므로 적절한 배율 인수가 이미 적용되어 있어야 하기 때문입니다.

에 대한 android.graphics.Canvas.drawBitmap(android.graphics.Bitmap, android.graphics.Rect, android.graphics.RectF, android.graphics.Paint)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상