Android.Renderscripts.Allocation.CopyFrom Method
Copy into an Allocation from a Android.Graphics.Bitmap.

Syntax

[Android.Runtime.Register("copyFrom", "(Landroid/graphics/Bitmap;)V", "GetCopyFrom_Landroid_graphics_Bitmap_Handler")]
public virtual void CopyFrom (Android.Graphics.Bitmap b)

Parameters

b
the source bitmap

Remarks

Copy into an Allocation from a Android.Graphics.Bitmap. The height, width, and format of the bitmap must match the existing allocation.

If the Android.Graphics.Bitmap is the same as the Android.Graphics.Bitmap used to create the Allocation with Allocation.CreateFromBitmap(RenderScript, Android.Graphics.Bitmap) and Allocation.USAGE_SHARED is set on the Allocation, this will synchronize the Allocation with the latest data from the Android.Graphics.Bitmap, potentially avoiding the actual copy.

[Android Documentation]

Requirements

Namespace: Android.Renderscripts
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11