Allocation.Copy2DRangeFrom Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Allocation, Int32, Int32) |
Copy a rectangular region from an Allocation into a rectangular region in this Allocation. |
Copy2DRangeFrom(Int32, Int32, Bitmap) |
Copy a |
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Object) |
Copy from an array into a rectangular region in this Allocation. |
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Byte[]) |
Copy from an array into a rectangular region in this Allocation. |
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Int16[]) |
Copy from an array into a rectangular region in this Allocation. |
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Int32[]) |
Copy from an array into a rectangular region in this Allocation. |
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Single[]) |
Copy from an array into a rectangular region in this Allocation. |
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Allocation, Int32, Int32)
Copy a rectangular region from an Allocation into a rectangular region in this Allocation.
[Android.Runtime.Register("copy2DRangeFrom", "(IIIILandroid/renderscript/Allocation;II)V", "GetCopy2DRangeFrom_IIIILandroid_renderscript_Allocation_IIHandler")]
public virtual void Copy2DRangeFrom (int xoff, int yoff, int w, int h, Android.Renderscripts.Allocation? data, int dataXoff, int dataYoff);
[<Android.Runtime.Register("copy2DRangeFrom", "(IIIILandroid/renderscript/Allocation;II)V", "GetCopy2DRangeFrom_IIIILandroid_renderscript_Allocation_IIHandler")>]
abstract member Copy2DRangeFrom : int * int * int * int * Android.Renderscripts.Allocation * int * int -> unit
override this.Copy2DRangeFrom : int * int * int * int * Android.Renderscripts.Allocation * int * int -> unit
Parameters
- xoff
- Int32
X offset of the region in this Allocation
- yoff
- Int32
Y offset of the region in this Allocation
- w
- Int32
Width of the region to update.
- h
- Int32
Height of the region to update.
- data
- Allocation
source Allocation.
- dataXoff
- Int32
X offset in source Allocation
- dataYoff
- Int32
Y offset in source Allocation
- Attributes
Remarks
Copy a rectangular region from an Allocation into a rectangular region in this Allocation.
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
Copy2DRangeFrom(Int32, Int32, Bitmap)
Copy a android.graphics.Bitmap
into an Allocation.
[Android.Runtime.Register("copy2DRangeFrom", "(IILandroid/graphics/Bitmap;)V", "GetCopy2DRangeFrom_IILandroid_graphics_Bitmap_Handler")]
public virtual void Copy2DRangeFrom (int xoff, int yoff, Android.Graphics.Bitmap? data);
[<Android.Runtime.Register("copy2DRangeFrom", "(IILandroid/graphics/Bitmap;)V", "GetCopy2DRangeFrom_IILandroid_graphics_Bitmap_Handler")>]
abstract member Copy2DRangeFrom : int * int * Android.Graphics.Bitmap -> unit
override this.Copy2DRangeFrom : int * int * Android.Graphics.Bitmap -> 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
- data
- Bitmap
the Bitmap to be copied
- Attributes
Remarks
Copy a android.graphics.Bitmap
into an Allocation. The height and width of the update will use the height and width of the android.graphics.Bitmap
.
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
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Object)
Copy from an array into a rectangular region in this Allocation.
[Android.Runtime.Register("copy2DRangeFrom", "(IIIILjava/lang/Object;)V", "GetCopy2DRangeFrom_IIIILjava_lang_Object_Handler")]
public virtual void Copy2DRangeFrom (int xoff, int yoff, int w, int h, Java.Lang.Object? array);
[<Android.Runtime.Register("copy2DRangeFrom", "(IIIILjava/lang/Object;)V", "GetCopy2DRangeFrom_IIIILjava_lang_Object_Handler")>]
abstract member Copy2DRangeFrom : int * int * int * int * Java.Lang.Object -> unit
override this.Copy2DRangeFrom : 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
- w
- Int32
Width of the region to update
- h
- Int32
Height of the region to update
- array
- Object
Data to be placed into the Allocation
- Attributes
Remarks
Copy from an array into a rectangular 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 * #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.
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
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Byte[])
Copy from an array into a rectangular region in this Allocation.
[Android.Runtime.Register("copy2DRangeFrom", "(IIII[B)V", "GetCopy2DRangeFrom_IIIIarrayBHandler")]
public virtual void Copy2DRangeFrom (int xoff, int yoff, int w, int h, byte[]? data);
[<Android.Runtime.Register("copy2DRangeFrom", "(IIII[B)V", "GetCopy2DRangeFrom_IIIIarrayBHandler")>]
abstract member Copy2DRangeFrom : int * int * int * int * byte[] -> unit
override this.Copy2DRangeFrom : int * int * int * int * byte[] -> 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
- w
- Int32
Width of the region to update
- h
- Int32
Height of the region to update
- data
- Byte[]
to be placed into the Allocation
- Attributes
Remarks
Copy from an array into a rectangular 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
is not 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.copy2DRangeFrom(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
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Int16[])
Copy from an array into a rectangular region in this Allocation.
[Android.Runtime.Register("copy2DRangeFrom", "(IIII[S)V", "GetCopy2DRangeFrom_IIIIarraySHandler")]
public virtual void Copy2DRangeFrom (int xoff, int yoff, int w, int h, short[]? data);
[<Android.Runtime.Register("copy2DRangeFrom", "(IIII[S)V", "GetCopy2DRangeFrom_IIIIarraySHandler")>]
abstract member Copy2DRangeFrom : int * int * int * int * int16[] -> unit
override this.Copy2DRangeFrom : int * int * int * int * int16[] -> 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
- w
- Int32
Width of the region to update
- h
- Int32
Height of the region to update
- data
- Int16[]
to be placed into the Allocation
- Attributes
Remarks
Copy from an array into a rectangular 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
is not 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.copy2DRangeFrom(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
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Int32[])
Copy from an array into a rectangular region in this Allocation.
[Android.Runtime.Register("copy2DRangeFrom", "(IIII[I)V", "GetCopy2DRangeFrom_IIIIarrayIHandler")]
public virtual void Copy2DRangeFrom (int xoff, int yoff, int w, int h, int[]? data);
[<Android.Runtime.Register("copy2DRangeFrom", "(IIII[I)V", "GetCopy2DRangeFrom_IIIIarrayIHandler")>]
abstract member Copy2DRangeFrom : int * int * int * int * int[] -> unit
override this.Copy2DRangeFrom : int * int * 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
- w
- Int32
Width of the region to update
- h
- Int32
Height of the region to update
- data
- Int32[]
to be placed into the Allocation
- Attributes
Remarks
Copy from an array into a rectangular 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
is not 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.copy2DRangeFrom(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
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Single[])
Copy from an array into a rectangular region in this Allocation.
[Android.Runtime.Register("copy2DRangeFrom", "(IIII[F)V", "GetCopy2DRangeFrom_IIIIarrayFHandler")]
public virtual void Copy2DRangeFrom (int xoff, int yoff, int w, int h, float[]? data);
[<Android.Runtime.Register("copy2DRangeFrom", "(IIII[F)V", "GetCopy2DRangeFrom_IIIIarrayFHandler")>]
abstract member Copy2DRangeFrom : int * int * int * int * single[] -> unit
override this.Copy2DRangeFrom : int * int * int * int * single[] -> 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
- w
- Int32
Width of the region to update
- h
- Int32
Height of the region to update
- data
- Single[]
to be placed into the Allocation
- Attributes
Remarks
Copy from an array into a rectangular 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
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.copy2DRangeFrom(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.