fb:porticula NoPaste
LoadTexture (BMP)
Uploader: | AndT |
Datum/Zeit: | 12.11.2007 15:25:53 |
function loadtexture (File as string) as any ptr
Dim bild As Any Ptr
Dim As Integer breit, hoch, ff = freefile
Dim As String dateiname = File
Open dateiname For Binary As #ff
Get #ff, 19, breit 'Breite aus der BMP-Datei holen
Get #ff, 23, hoch 'Höhe aus der BMP-Datei holen
Close #ff
bild = ImageCreate(breit,hoch)
'BMP in das Image laden
function = bild
end function