Allocation.CreateCubemapFromBitmap 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
CreateCubemapFromBitmap(RenderScript, Bitmap) |
Creates a non-mipmapped cubemap Allocation for use as a graphics texture
from a |
CreateCubemapFromBitmap(RenderScript, Bitmap, Allocation+MipmapControl, AllocationUsage) |
Creates a non-mipmapped cubemap Allocation for use as a graphics texture
from a |
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.
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
specifies desired mipmap behaviour for the cubemap
- usage
- AllocationUsage
bit field specifying how the cubemap is utilized
Returns
allocation containing cubemap data
- Attributes
Remarks
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.