OGLEnvironment.Load Method

Loads a bitmap in the graphics memory.
Public Overrides Sub Load( _ 
ByVal renderContext As RenderContextBase, _ 
ByVal bitmap As Bitmap, _ 
ByVal minFunc As textureFilteringFunctionType, _ 
Optional ByVal magFunc As textureFilteringFunctionType = textureFilteringFunctionType.Linear, _ 
Optional ByVal anisotropicFiltering As Boolean = true, _ 
Optional ByVal repeatX As Boolean = true, _ 
Optional ByVal repeatY As Boolean = true, _ 
Optional ByVal checkPowerOfTwo As Boolean = true, _ 
Optional ByVal enlargeIfSizeNotSupported As Boolean = false _ 
)
This language is not supported or no code example is available.
public override void Load( 
RenderContextBase renderContext
Bitmap bitmap
textureFilteringFunctionType minFunc
textureFilteringFunctionType magFunc = textureFilteringFunctionType.Linear, 
bool anisotropicFiltering = true, 
bool repeatX = true, 
bool repeatY = true, 
bool checkPowerOfTwo = true, 
bool enlargeIfSizeNotSupported = false 
)
This language is not supported or no code example is available.

Parameters

renderContext
RenderContextBase

bitmap
Bitmap

minFunc
textureFilteringFunctionType

magFunc
textureFilteringFunctionType

anisotropicFiltering
bool

repeatX
bool

repeatY
bool

checkPowerOfTwo
bool

if true, checks that the texture is power of two and resizes it if it's not.

enlargeIfSizeNotSupported
bool

If true, the image is put in a bigger image (with some empty border, keeping the originla size of image) when the image is not power of two and the hardware does not support it. Else it is resized to a smaller power of two size.

.NET Framework

Supported in: 4.8

In this article

Definition