Texture2DFactoryFromBitmap Method  | 
 
Creates a new texture from a bitmap.
Accepts a .NET 
Bitmap with a 
PixelFormat of
Format8bppIndexed, Format24bppRgb, Format32bppRgb, or Format32bppArgb.
 
    Namespace: 
   AGI.Foundation.Graphics.Advanced
    Assembly:
   AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic Texture2D FromBitmap(
	Bitmap bitmap
)
Public Function FromBitmap ( 
	bitmap As Bitmap
) As Texture2D
public:
Texture2D^ FromBitmap(
	Bitmap^ bitmap
)
member FromBitmap : 
        bitmap : Bitmap -> Texture2D 
Parameters
- bitmap
 - Type: System.DrawingBitmap
The Bitmap to create the texture from. 
Return Value
Type: 
Texture2DThe 
Texture2D that was created.
See Also