Partager via


Allocation.Copy3DRangeFrom Method

Definition

Overloads

Copy3DRangeFrom(Int32, Int32, Int32, Int32, Int32, Int32, Allocation, Int32, Int32, Int32)

Copy a rectangular region into the allocation from another allocation.

Copy3DRangeFrom(Int32, Int32, Int32, Int32, Int32, Int32, Object)

Copy from an array into a 3D region in this Allocation.

Copy3DRangeFrom(Int32, Int32, Int32, Int32, Int32, Int32, Allocation, Int32, Int32, Int32)

Copy a rectangular region into the allocation from another allocation.

[Android.Runtime.Register("copy3DRangeFrom", "(IIIIIILandroid/renderscript/Allocation;III)V", "GetCopy3DRangeFrom_IIIIIILandroid_renderscript_Allocation_IIIHandler", ApiSince=23)]
public virtual void Copy3DRangeFrom (int xoff, int yoff, int zoff, int w, int h, int d, Android.Renderscripts.Allocation? data, int dataXoff, int dataYoff, int dataZoff);
[<Android.Runtime.Register("copy3DRangeFrom", "(IIIIIILandroid/renderscript/Allocation;III)V", "GetCopy3DRangeFrom_IIIIIILandroid_renderscript_Allocation_IIIHandler", ApiSince=23)>]
abstract member Copy3DRangeFrom : int * int * int * int * int * int * Android.Renderscripts.Allocation * int * int * int -> unit
override this.Copy3DRangeFrom : int * int * int * int * int * int * Android.Renderscripts.Allocation * int * int * int -> unit

Parameters

xoff
Int32

X offset of the region to update in this Allocation

yoff
Int32

Y offset of the region to update in this Allocation

zoff
Int32

Z offset of the region to update in this Allocation

w
Int32

Width of the region to update.

h
Int32

Height of the region to update.

d
Int32

Depth of the region to update.

data
Allocation

source allocation.

dataXoff
Int32

X offset of the region in the source Allocation

dataYoff
Int32

Y offset of the region in the source Allocation

dataZoff
Int32

Z offset of the region in the source Allocation

Attributes

Remarks

Copy a rectangular region into the allocation from another allocation.

Java documentation for android.renderscript.Allocation.copy3DRangeFrom(int, int, int, int, int, int, android.renderscript.Allocation, int, int, 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

Copy3DRangeFrom(Int32, Int32, Int32, Int32, Int32, Int32, Object)

Copy from an array into a 3D region in this Allocation.

[Android.Runtime.Register("copy3DRangeFrom", "(IIIIIILjava/lang/Object;)V", "GetCopy3DRangeFrom_IIIIIILjava_lang_Object_Handler", ApiSince=23)]
public virtual void Copy3DRangeFrom (int xoff, int yoff, int zoff, int w, int h, int d, Java.Lang.Object? array);
[<Android.Runtime.Register("copy3DRangeFrom", "(IIIIIILjava/lang/Object;)V", "GetCopy3DRangeFrom_IIIIIILjava_lang_Object_Handler", ApiSince=23)>]
abstract member Copy3DRangeFrom : int * int * int * int * int * int * Java.Lang.Object -> unit
override this.Copy3DRangeFrom : int * int * int * int * int * int * Java.Lang.Object -> unit

Parameters

xoff
Int32

X offset of the region to update in this Allocation

yoff
Int32

Y offset of the region to update in this Allocation

zoff
Int32

Z offset of the region to update in this Allocation

w
Int32

Width of the region to update

h
Int32

Height of the region to update

d
Int32

Depth of the region to update

array
Object

to be placed into the allocation

Attributes

Remarks

Copy from an array into a 3D region in this Allocation. The array is assumed to be tightly packed. This variant is type checked and will generate exceptions if the Allocation's android.renderscript.Element does not match the input data type.

The size of the region is: w * h * d * #getElement.Element#getBytesSize.

If the Allocation does not have Vec3 Elements, then the size of the array in bytes must be at least the size of the region.

If the Allocation has Vec3 Elements and #setAutoPadding AutoPadding is disabled, then the size of the array in bytes must be at least the size of the region. The padding bytes for the cells must be part of the array.

If the Allocation has Vec3 Elements and #setAutoPadding AutoPadding is enabled, then the size of the array in bytes must be at least 3/4 the size of the region. The padding bytes for the cells must not be part of the array.

Java documentation for android.renderscript.Allocation.copy3DRangeFrom(int, int, int, int, int, int, java.lang.Object).

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