Quote: "I've looked through the files and I can't find a function to make an image. In GDK 1.0 it was dbCreateImage......"
I suppose you're using DarkGDK 2.0 and not PureGDK 2.0 which is deprecated btw.
There's no such command indeed and it was never a part of official DBPro command set.
You're better off creating an image from memblock.
Quote: "dbCreateImageFromMemblock
Syntax
int dbCreateImageFromMemblock ( int memblockID [, int imageID] )
Description
If 'imageID' is not specified for this function, the new ID will be returned as the result. Otherwise, the value of the result will be the same value passed as 'imageID'.
This command will create an image from a memblock.
The image format is laid out in the following configuration:
4 bytes (uint32) : Width
4 bytes (uint32) : Height
4 bytes (uint32) : Depth
.. : The image data (width * height * depth bytes)
For 32-bit images the data section is a sequence of 32-bits (4 sets of 8 bytes) in BGRA format.
"
Basically you create a memblock, fill in the data and then call create image from memblock. Thats it.
Intel Core2Duo 2.2GHZ, 2GB, GeForce 8600M GT 1280MB, Windows Vista Ultimate SP2, PureBasic 4.61 + DarkGDK 2.0