Click or drag to resize

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: 22.2.414.0 (22.2.414.0)
Syntax
public Texture2D FromBitmap(
	Bitmap bitmap
)

Parameters

bitmap
Type: System.DrawingBitmap
The Bitmap to create the texture from.

Return Value

Type: Texture2D
The Texture2D that was created.
See Also