How to get an images device context?

BlitzPlus Forums/BlitzPlus Programming/How to get an images device context?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

???

ImageID = CreateImage(256,256)
Debuglog GetDC(ImageID) ; returns 0 :(

GetDC works okay for windows ect but not on images, am i missing something here?

Purebasic allows this...

CreateImage(1,256,256)
UseImage(1)
OutPut = ImageOutput()
DC = StartDrawing(OutPut)
Debug Str(DC) ; shows the DC for the image
EXTFloodFill_(DC,10,10,Point(10,10),1)
StopDrawing()

Sorry to be a pain, but can this be done in blitz? Thx