Hi, I'm new to Darkbasic and I'm following the tutorials.
I'm having a problem loading my own bitmaps/images though. I'm making sure that the images are located in the same directory as the project.
First, I've tried just a simple
Next, I tried
Then, I tried the example for within Darkbasic itself:
rem ==========================================
rem DARK BASIC EXAMPLE PROGRAM 1
rem ==========================================
rem This program will load a BMP file
rem ------------------------------------------
rem Set the ink to white and paper color to black
ink rgb(244,214,210),1
load bitmap "pics\bitmap0.bmp"
rem Will wait for you to press any key
suspend for key
rem End the program
end
Now, this actually works, but as soon as I replace bitmap0.bmp with my own bitmap (and actually copying my own bitmap to the same directory), it fails to load it. Which led me to believe the problem lies with my images.
So, I edited my image to make it the same size as the one used in the example but it still wouldn't load. I've tried changing my images file extension (jpg, png etc) but still no dice.
Anyone got any clues as to whats wrong with images?!
P.S: I've also tried changing the display mode (EG: set display mode 1280, 1024, 32 etc).