DarkBASIC Professional Help File

DX11:IMAGE

Contains functions pertaining to loading / saving images which can be used for creating sprites or to texture 3D objects.

    DX11 LOAD IMAGE : Return Dword = DX11 LOAD IMAGE(filename, [generateMipMaps], [forceBGRA32], [accessMode])

    DX11 CREATE IMAGE : Return Dword = DX11 CREATE IMAGE(width, height, [format], [generateMipMaps], [red], [green], [blue], [alpha], [accessMode])

    DX11 CREATE IMAGE FROM PIXELMAP : Return Dword = DX11 CREATE IMAGE FROM PIXELMAP(pixelmap, [generateMipMaps], [accessMode])

    DX11 CREATE TEXTURE ARRAY : Return Dword = DX11 CREATE TEXTURE ARRAY(width, height, arraySize, [format], [generateMipMaps], [red], [green], [blue], [alpha], [accessMode])

    DX11 CREATE TEXTURE ARRAY FROM ARRAY : Return Dword = DX11 CREATE TEXTURE ARRAY FROM ARRAY(images(), [startIndex], [numElements], [accessMode])

    DX11 CREATE CUBEMAP : Return Dword = DX11 CREATE CUBEMAP(east, west, up, down, north, south, [accessMode])

    DX11 CREATE CUBEMAP ARRAY FROM ARRAY : Return Dword = DX11 CREATE CUBEMAP ARRAY FROM ARRAY(images(), [startIndex], [numElements], [accessMode])

    DX11 CREATE RENDER TARGET : Return Dword = DX11 CREATE RENDER TARGET(width, height, [format], [arraySize], [makeDepthStencilBuffer])

    DX11 DELETE IMAGE : DX11 DELETE IMAGE img

    DX11 IMAGE EXISTS : Return Boolean = DX11 IMAGE EXISTS(image)

    DX11 SAVE IMAGE : DX11 SAVE IMAGE img, filename

    DX11 SAVE TEXTURE : DX11 SAVE TEXTURE img, filename

    DX11 GET IMAGE WIDTH : Return Dword = DX11 GET IMAGE WIDTH(img, [mipLevel])

    DX11 GET IMAGE HEIGHT : Return Dword = DX11 GET IMAGE HEIGHT(img, [mipLevel])

    DX11 GET IMAGE FORMAT : Return Dword = DX11 GET IMAGE FORMAT(img)

    DX11 GET IMAGE MIP LEVELS : Return Dword = DX11 GET IMAGE MIP LEVELS(img)

    DX11 LOCK IMAGE : Return Boolean = DX11 LOCK IMAGE(img, [arrayId], [mipLevel], [offsetX], [offsetY], [width], [height])

    DX11 GET IMAGE PIXEL BUFFER POINTER : Return Dword = DX11 GET IMAGE PIXEL BUFFER POINTER(img)

    DX11 GET IMAGE PIXEL BUFFER SIZE : Return Dword = DX11 GET IMAGE PIXEL BUFFER SIZE(img)

    DX11 GET IMAGE PIXEL BUFFER WIDTH : Return Dword = DX11 GET IMAGE PIXEL BUFFER WIDTH(img)

    DX11 GET IMAGE PIXEL BUFFER HEIGHT : Return Dword = DX11 GET IMAGE PIXEL BUFFER HEIGHT(img)

    DX11 UNLOCK IMAGE : DX11 UNLOCK IMAGE img