Allocation.CreateFromBitmap Méthode

Définition

Surcharges

Nom Description
CreateFromBitmap(RenderScript, Bitmap)

Crée une allocation à partir d’un android.graphics.Bitmap.

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

Crée une allocation à partir d’un android.graphics.Bitmap.

CreateFromBitmap(RenderScript, Bitmap)

Crée une allocation à partir d’un android.graphics.Bitmap.

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

Paramètres

rs
RenderScript

Contexte auquel appartient l’allocation.

b
Bitmap

Source bitmap pour les données d’allocation

Retours

Allocation contenant des données bitmap

Attributs

Remarques

Crée une allocation à partir d’un android.graphics.Bitmap.

Avec l’API cible version 18 ou ultérieure, cette allocation sera créée avec #USAGE_SHARED, #USAGE_SCRIPTet #USAGE_GRAPHICS_TEXTURE. Avec l’API cible version 17 ou inférieure, cette allocation sera créée avec #USAGE_GRAPHICS_TEXTURE.

Documentation Java pour android.renderscript.Allocation.createFromBitmap(android.renderscript.RenderScript, android.graphics.Bitmap).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.

S’applique à

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

Crée une allocation à partir d’un android.graphics.Bitmap.

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

Paramètres

rs
RenderScript

Contexte auquel appartient l’allocation.

b
Bitmap

Source bitmap pour les données d’allocation

mips
Allocation.MipmapControl

spécifie le comportement de mipmap souhaité pour l’allocation

usage
AllocationUsage

champ bit spécifiant la façon dont l’allocation est utilisée

Retours

Allocation contenant des données bitmap

Attributs

Remarques

Documentation Java pour android.renderscript.Allocation.createFromBitmap(android.renderscript.RenderScript, android.graphics.Bitmap).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.

S’applique à