次の方法で共有


RenderEffect.CreateBitmapEffect Method

Definition

Overloads

CreateBitmapEffect(Bitmap)

Create a RenderEffect that renders the contents of the input Bitmap.

CreateBitmapEffect(Bitmap, Rect, Rect)

Create a RenderEffect that renders the contents of the input Bitmap.

CreateBitmapEffect(Bitmap)

Create a RenderEffect that renders the contents of the input Bitmap.

[Android.Runtime.Register("createBitmapEffect", "(Landroid/graphics/Bitmap;)Landroid/graphics/RenderEffect;", "", ApiSince=31)]
public static Android.Graphics.RenderEffect CreateBitmapEffect (Android.Graphics.Bitmap bitmap);
[<Android.Runtime.Register("createBitmapEffect", "(Landroid/graphics/Bitmap;)Landroid/graphics/RenderEffect;", "", ApiSince=31)>]
static member CreateBitmapEffect : Android.Graphics.Bitmap -> Android.Graphics.RenderEffect

Parameters

bitmap
Bitmap

The source bitmap to be rendered by the created RenderEffect

Returns

Attributes

Remarks

Create a RenderEffect that renders the contents of the input Bitmap. This is useful to create an input for other RenderEffect types such as RenderEffect#createBlurEffect(float, float, RenderEffect, TileMode) or RenderEffect#createColorFilterEffect(ColorFilter, RenderEffect)

Java documentation for android.graphics.RenderEffect.createBitmapEffect(android.graphics.Bitmap).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

CreateBitmapEffect(Bitmap, Rect, Rect)

Create a RenderEffect that renders the contents of the input Bitmap.

[Android.Runtime.Register("createBitmapEffect", "(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;)Landroid/graphics/RenderEffect;", "", ApiSince=31)]
public static Android.Graphics.RenderEffect CreateBitmapEffect (Android.Graphics.Bitmap bitmap, Android.Graphics.Rect? src, Android.Graphics.Rect dst);
[<Android.Runtime.Register("createBitmapEffect", "(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;)Landroid/graphics/RenderEffect;", "", ApiSince=31)>]
static member CreateBitmapEffect : Android.Graphics.Bitmap * Android.Graphics.Rect * Android.Graphics.Rect -> Android.Graphics.RenderEffect

Parameters

bitmap
Bitmap

The source bitmap to be rendered by the created RenderEffect

src
Rect

Optional subset of the bitmap to be part of the rendered output. If null is provided, the entire bitmap bounds are used.

dst
Rect

Bounds of the destination which the bitmap is translated and scaled to be drawn into within the bounds of the RenderNode this RenderEffect is installed on

Returns

Attributes

Remarks

Create a RenderEffect that renders the contents of the input Bitmap. This is useful to create an input for other RenderEffect types such as RenderEffect#createBlurEffect(float, float, RenderEffect, TileMode) or RenderEffect#createColorFilterEffect(ColorFilter, RenderEffect)

Java documentation for android.graphics.RenderEffect.createBitmapEffect(android.graphics.Bitmap, android.graphics.Rect, android.graphics.Rect).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to