Partager via


Bitmap.WriteToParcel(Parcel, ParcelableWriteFlags) Method

Definition

Write the bitmap and its pixels to the parcel.

[Android.Runtime.Register("writeToParcel", "(Landroid/os/Parcel;I)V", "")]
public void WriteToParcel (Android.OS.Parcel p, Android.OS.ParcelableWriteFlags flags);
[<Android.Runtime.Register("writeToParcel", "(Landroid/os/Parcel;I)V", "")>]
abstract member WriteToParcel : Android.OS.Parcel * Android.OS.ParcelableWriteFlags -> unit
override this.WriteToParcel : Android.OS.Parcel * Android.OS.ParcelableWriteFlags -> unit

Parameters

p
Parcel

Parcel object to write the bitmap data into

flags
ParcelableWriteFlags

Additional flags about how the object should be written. May be 0 or ParcelableWriteReturnValue.

Implements

Attributes

Remarks

Write the bitmap and its pixels to the parcel. The bitmap can be rebuilt from the parcel by calling CREATOR.createFromParcel().

If this bitmap is Config#HARDWARE, it may be unparceled with a different pixel format (e.g. 565, 8888), but the content will be preserved to the best quality permitted by the final pixel format

Java documentation for android.graphics.Bitmap.writeToParcel(android.os.Parcel, int).

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