The problem is simple.
In short: I cannot get LoadPixmap() to work.
In detail:
The problem is this function alone.
I have tried loading several different images with this function. Jpg's, bmp's, 32 bit Targa's. The files I tried where all Power of 2 in size and made either by myself in photoshop CS2, or downloaded from the web somewhere.
Everytime I try loading an image, the function returns Null.
In order to make sure it's not something else in my program, I put the following code in an entirely new bmax file to try it out.
With each file I tried loading, the result is failure ("Grmbl!@#" get's printed).
My system is Windows XP Pro. SP2.
I have an NVidia GeForce FX 5700/PCI/SSE/3DNOW!.
DireectX 9c and BlitzMax version 1.20.
At this point I have only one solution.
Load the image with LoadImage, then manually copy the pixeldata over to a newly created Pixmap. If this is going to work properly is yet unknown. Ill go try that now, but I hope im just overseeing something here and this can be resolved.
In short: I cannot get LoadPixmap() to work.
In detail:
The problem is this function alone.
I have tried loading several different images with this function. Jpg's, bmp's, 32 bit Targa's. The files I tried where all Power of 2 in size and made either by myself in photoshop CS2, or downloaded from the web somewhere.
Everytime I try loading an image, the function returns Null.
In order to make sure it's not something else in my program, I put the following code in an entirely new bmax file to try it out.
local filename:string = "someimage.bmp"; Local pixmap:TPixmap = LoadPixmap( filename ); If( pixmap = Null ) Then print("Grmbl!@#"); else Print( "yay!") End If
With each file I tried loading, the result is failure ("Grmbl!@#" get's printed).
My system is Windows XP Pro. SP2.
I have an NVidia GeForce FX 5700/PCI/SSE/3DNOW!.
DireectX 9c and BlitzMax version 1.20.
At this point I have only one solution.
Load the image with LoadImage, then manually copy the pixeldata over to a newly created Pixmap. If this is going to work properly is yet unknown. Ill go try that now, but I hope im just overseeing something here and this can be resolved.