다음을 통해 공유


Allocation.CreateCubemapFromBitmap Method

Definition

Overloads

CreateCubemapFromBitmap(RenderScript, Bitmap)

Creates a non-mipmapped cubemap Allocation for use as a graphics texture from a android.graphics.Bitmap containing the horizontal list of cube faces.

CreateCubemapFromBitmap(RenderScript, Bitmap, Allocation+MipmapControl, AllocationUsage)

Creates a non-mipmapped cubemap Allocation for use as a graphics texture from a android.graphics.Bitmap containing the horizontal list of cube faces.

CreateCubemapFromBitmap(RenderScript, Bitmap)

Creates a non-mipmapped cubemap Allocation for use as a graphics texture from a android.graphics.Bitmap containing the horizontal list of cube faces.

[Android.Runtime.Register("createCubemapFromBitmap", "(Landroid/renderscript/RenderScript;Landroid/graphics/Bitmap;)Landroid/renderscript/Allocation;", "")]
public static Android.Renderscripts.Allocation? CreateCubemapFromBitmap (Android.Renderscripts.RenderScript? rs, Android.Graphics.Bitmap? b);
[<Android.Runtime.Register("createCubemapFromBitmap", "(Landroid/renderscript/RenderScript;Landroid/graphics/Bitmap;)Landroid/renderscript/Allocation;", "")>]
static member CreateCubemapFromBitmap : Android.Renderscripts.RenderScript * Android.Graphics.Bitmap -> Android.Renderscripts.Allocation

Parameters

rs
RenderScript

Context to which the allocation will belong.

b
Bitmap

bitmap with cubemap faces layed out in the following format: right, left, top, bottom, front, back

Returns

allocation containing cubemap data

Attributes

Remarks

Creates a non-mipmapped cubemap Allocation for use as a graphics texture from a android.graphics.Bitmap containing the horizontal list of cube faces. Each face must be a square, have the same size as all other faces, and have a width that is a power of 2.

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

CreateCubemapFromBitmap(RenderScript, Bitmap, Allocation+MipmapControl, AllocationUsage)

Creates a non-mipmapped cubemap Allocation for use as a graphics texture from a android.graphics.Bitmap containing the horizontal list of cube faces.

[Android.Runtime.Register("createCubemapFromBitmap", "(Landroid/renderscript/RenderScript;Landroid/graphics/Bitmap;Landroid/renderscript/Allocation$MipmapControl;I)Landroid/renderscript/Allocation;", "")]
public static Android.Renderscripts.Allocation? CreateCubemapFromBitmap (Android.Renderscripts.RenderScript? rs, Android.Graphics.Bitmap? b, Android.Renderscripts.Allocation.MipmapControl? mips, Android.Renderscripts.AllocationUsage usage);
[<Android.Runtime.Register("createCubemapFromBitmap", "(Landroid/renderscript/RenderScript;Landroid/graphics/Bitmap;Landroid/renderscript/Allocation$MipmapControl;I)Landroid/renderscript/Allocation;", "")>]
static member CreateCubemapFromBitmap : Android.Renderscripts.RenderScript * Android.Graphics.Bitmap * Android.Renderscripts.Allocation.MipmapControl * Android.Renderscripts.AllocationUsage -> Android.Renderscripts.Allocation

Parameters

rs
RenderScript

Context to which the allocation will belong.

b
Bitmap

bitmap with cubemap faces layed out in the following format: right, left, top, bottom, front, back

mips
Allocation.MipmapControl

specifies desired mipmap behaviour for the cubemap

usage
AllocationUsage

bit field specifying how the cubemap is utilized

Returns

allocation containing cubemap data

Attributes

Remarks

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