다음을 통해 공유


Bitmap.Copy(Bitmap+Config, Boolean) Method

Definition

Tries to make a new bitmap based on the dimensions of this bitmap, setting the new bitmap's config to the one specified, and then copying this bitmap's pixels into the new bitmap.

[Android.Runtime.Register("copy", "(Landroid/graphics/Bitmap$Config;Z)Landroid/graphics/Bitmap;", "")]
public Android.Graphics.Bitmap? Copy (Android.Graphics.Bitmap.Config config, bool isMutable);
[<Android.Runtime.Register("copy", "(Landroid/graphics/Bitmap$Config;Z)Landroid/graphics/Bitmap;", "")>]
member this.Copy : Android.Graphics.Bitmap.Config * bool -> Android.Graphics.Bitmap

Parameters

config
Bitmap.Config

The desired config for the resulting bitmap

isMutable
Boolean

True if the resulting bitmap should be mutable (i.e. its pixels can be modified)

Returns

the new bitmap, or null if the copy could not be made.

Attributes

Remarks

Java documentation for android.graphics.Bitmap.copy(android.graphics.Config, boolean).

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