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: 24.2.419.0 (24.2.419.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