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.3.420.0 (24.3.420.0)
Syntax public 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