Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Graphics Namespace / RenderContextBase Class / CreateTexture2D Method / CreateTexture2D(Image,textureFilteringFunctionType,textureFilteringFunctionType,Boolean,Boolean,Boolean,Boolean) Method
The image
Minification function
Magnification function
If true, enables anisotropic filtering for mipmapping
If true, the image is put in a bigger image (with some empty border, keeping the original 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.
If true, the texture is repeated in the X direction
If true, the texture is repeated in the Y direction

In This Topic
    CreateTexture2D(Image,textureFilteringFunctionType,textureFilteringFunctionType,Boolean,Boolean,Boolean,Boolean) Method
    In This Topic
    Creates a 2D texture from an image.
    Syntax
    'Declaration
     
    Public Overloads MustOverride Function CreateTexture2D( _
       ByVal image As Image, _
       Optional ByVal minFunc As textureFilteringFunctionType, _
       Optional ByVal magFunc As textureFilteringFunctionType, _
       Optional ByVal anisotropicFiltering As Boolean, _
       Optional ByVal enlargeIfSizeNotSupported As Boolean, _
       Optional ByVal repeatX As Boolean, _
       Optional ByVal repeatY As Boolean _
    ) As TextureBase

    Parameters

    image
    The image
    minFunc
    Minification function
    magFunc
    Magnification function
    anisotropicFiltering
    If true, enables anisotropic filtering for mipmapping
    enlargeIfSizeNotSupported
    If true, the image is put in a bigger image (with some empty border, keeping the original 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.
    repeatX
    If true, the texture is repeated in the X direction
    repeatY
    If true, the texture is repeated in the Y direction

    Return Value

    See Also