LoadD3DTextureFromMemory Function
ImagingDirect3D9

Creates D3D texture from image in memory in format supported by Imaging.

Pascal
function LoadD3DTextureFromMemory(Data: Pointer; 
                                  Size: LongInt; 
                                  Device: IDirect3DDevice9; 
                                  var Texture: IDirect3DTexture9; 
                                  CreatedWidth: PLongInt = nil; 
                                  CreatedHeight: PLongInt = nil): Boolean;
File

ImagingDirect3D9 (at line 88)

Description

You can use CreatedWidth and Height parameters to query dimensions of created textures (it could differ from dimensions of source image).

Related Information
You are here: Symbol Reference > Functions > LoadD3DTextureFromMemory Function