General Development

how do i write a program in blitz basic 3d to open a bpm file – wplodge

Junior Member

Posts: 1
From: hinesville, ga, usa
Registered: 02-16-2005
i'm trying to make a program that uses bmp file but i'm not sure how to do it can anyone help, or is it not possible to make a program that can open image files. i'm new to programming


Posts: 1345
From: Maesteg, Wales
Registered: 07-21-2001
sorry didn't read the title properly.


"One World. One Web. One Program." -Microsoft promotional advertisement
"Ein Volk, ein Reich, ein Fuhrer!" -Adolf Hitler

[This message has been edited by D-SIPL (edited February 16, 2005).]



Posts: 1059
Registered: 06-30-2004
Ive never actualy done any real coding but Im sure its possible.


I dont like siggys. They are to hard to think up :(



Posts: 86
From: UK
Registered: 08-04-2004
Blitz3D fully supports bmp images as well as other formats.

The simple answer is

MyImg = LoadImage("C:\Folder\MyImage.bmp")

but ofc depends what you are trying to achieve? Perhaps you could explain more? For example, if you want to use the image as a texture on a 3D object you would use

MyTex = LoadTexture("C:\Folder\MyImage.bmp")

There are loads of flags to consider too, like if you want use transparency etc.

..and then you need to display the image on the screen somehow, but this depends on what you are trying to achieve?

Does that help any?

Rhy Out