共用方式為


Allocation.Copy2DRangeTo Method

Definition

Overloads

Copy2DRangeTo(Int32, Int32, Int32, Int32, Single[])

Copy from a rectangular region in this Allocation into an array.

Copy2DRangeTo(Int32, Int32, Int32, Int32, Int32[])

Copy from a rectangular region in this Allocation into an array.

Copy2DRangeTo(Int32, Int32, Int32, Int32, Object)

Copy from a rectangular region in this Allocation into an array.

Copy2DRangeTo(Int32, Int32, Int32, Int32, Byte[])

Copy from a rectangular region in this Allocation into an array.

Copy2DRangeTo(Int32, Int32, Int32, Int32, Int16[])

Copy from a rectangular region in this Allocation into an array.

Copy2DRangeTo(Int32, Int32, Int32, Int32, Single[])

Copy from a rectangular region in this Allocation into an array.

[Android.Runtime.Register("copy2DRangeTo", "(IIII[F)V", "GetCopy2DRangeTo_IIIIarrayFHandler", ApiSince=23)]
public virtual void Copy2DRangeTo (int xoff, int yoff, int w, int h, float[]? data);
[<Android.Runtime.Register("copy2DRangeTo", "(IIII[F)V", "GetCopy2DRangeTo_IIIIarrayFHandler", ApiSince=23)>]
abstract member Copy2DRangeTo : int * int * int * int * single[] -> unit
override this.Copy2DRangeTo : int * int * int * int * single[] -> unit

Parameters

xoff
Int32

X offset of the region to copy in this Allocation

yoff
Int32

Y offset of the region to copy in this Allocation

w
Int32

Width of the region to copy

h
Int32

Height of the region to copy

data
Single[]

Dest Array to be copied into

Attributes

Remarks

Copy from a rectangular region in this Allocation into an array. This variant is type checked and will generate exceptions if the Allocation's android.renderscript.Element is neither a 32 bit float nor a vector of 32 bit floats android.renderscript.Element.DataType.

The size of the region is: w * h * #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.copy2DRangeTo(int, int, int, int, float[]).

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

Copy2DRangeTo(Int32, Int32, Int32, Int32, Int32[])

Copy from a rectangular region in this Allocation into an array.

[Android.Runtime.Register("copy2DRangeTo", "(IIII[I)V", "GetCopy2DRangeTo_IIIIarrayIHandler", ApiSince=23)]
public virtual void Copy2DRangeTo (int xoff, int yoff, int w, int h, int[]? data);
[<Android.Runtime.Register("copy2DRangeTo", "(IIII[I)V", "GetCopy2DRangeTo_IIIIarrayIHandler", ApiSince=23)>]
abstract member Copy2DRangeTo : int * int * int * int * int[] -> unit
override this.Copy2DRangeTo : int * int * int * int * int[] -> unit

Parameters

xoff
Int32

X offset of the region to copy in this Allocation

yoff
Int32

Y offset of the region to copy in this Allocation

w
Int32

Width of the region to copy

h
Int32

Height of the region to copy

data
Int32[]

Dest Array to be copied into

Attributes

Remarks

Copy from a rectangular region in this Allocation into an array. This variant is type checked and will generate exceptions if the Allocation's android.renderscript.Element is neither a 32 bit integer nor a vector of 32 bit integers android.renderscript.Element.DataType.

The size of the region is: w * h * #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.copy2DRangeTo(int, int, 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

Copy2DRangeTo(Int32, Int32, Int32, Int32, Object)

Copy from a rectangular region in this Allocation into an array.

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

Parameters

xoff
Int32

X offset of the region to copy in this Allocation

yoff
Int32

Y offset of the region to copy in this Allocation

w
Int32

Width of the region to copy

h
Int32

Height of the region to copy

array
Object

Dest Array to be copied into

Attributes

Remarks

Copy from a rectangular region in this Allocation into an array. This method is type checked and will generate exceptions if the Allocation's android.renderscript.Element does not match the component type of the array passed in.

The size of the region is: w * h * #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.copy2DRangeTo(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

Copy2DRangeTo(Int32, Int32, Int32, Int32, Byte[])

Copy from a rectangular region in this Allocation into an array.

[Android.Runtime.Register("copy2DRangeTo", "(IIII[B)V", "GetCopy2DRangeTo_IIIIarrayBHandler", ApiSince=23)]
public virtual void Copy2DRangeTo (int xoff, int yoff, int w, int h, byte[]? data);
[<Android.Runtime.Register("copy2DRangeTo", "(IIII[B)V", "GetCopy2DRangeTo_IIIIarrayBHandler", ApiSince=23)>]
abstract member Copy2DRangeTo : int * int * int * int * byte[] -> unit
override this.Copy2DRangeTo : int * int * int * int * byte[] -> unit

Parameters

xoff
Int32

X offset of the region to copy in this Allocation

yoff
Int32

Y offset of the region to copy in this Allocation

w
Int32

Width of the region to copy

h
Int32

Height of the region to copy

data
Byte[]

Dest Array to be copied into

Attributes

Remarks

Copy from a rectangular region in this Allocation into an array. This variant is type checked and will generate exceptions if the Allocation's android.renderscript.Element is neither an 8 bit integer nor a vector of 8 bit integers android.renderscript.Element.DataType.

The size of the region is: w * h * #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.copy2DRangeTo(int, int, int, int, byte[]).

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

Copy2DRangeTo(Int32, Int32, Int32, Int32, Int16[])

Copy from a rectangular region in this Allocation into an array.

[Android.Runtime.Register("copy2DRangeTo", "(IIII[S)V", "GetCopy2DRangeTo_IIIIarraySHandler", ApiSince=23)]
public virtual void Copy2DRangeTo (int xoff, int yoff, int w, int h, short[]? data);
[<Android.Runtime.Register("copy2DRangeTo", "(IIII[S)V", "GetCopy2DRangeTo_IIIIarraySHandler", ApiSince=23)>]
abstract member Copy2DRangeTo : int * int * int * int * int16[] -> unit
override this.Copy2DRangeTo : int * int * int * int * int16[] -> unit

Parameters

xoff
Int32

X offset of the region to copy in this Allocation

yoff
Int32

Y offset of the region to copy in this Allocation

w
Int32

Width of the region to copy

h
Int32

Height of the region to copy

data
Int16[]

Dest Array to be copied into

Attributes

Remarks

Copy from a rectangular region in this Allocation into an array. This variant is type checked and will generate exceptions if the Allocation's android.renderscript.Element is neither a 16 bit integer nor a vector of 16 bit integers android.renderscript.Element.DataType.

The size of the region is: w * h * #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.copy2DRangeTo(int, int, int, int, short[]).

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