Hi Todd
Just tried savebuffer but the card does not appear but a normal image that i displayed in the canvas does.
THe Qcard32.dll is similar to the microsoft cards.dll
Here is the test app
the decls file contains
the functions are described in the docs as:
BOOL InitializeDeck(hWnd)
DrawCard (hWnd, nCard, nxLoc, nyLoc)
THe dll is here http://www.telusplanet.net/public/stevem/
Thanks for your help
Just tried savebuffer but the card does not appear but a normal image that i displayed in the canvas does.
THe Qcard32.dll is similar to the microsoft cards.dll
Here is the test app
; Card test Global winMain = CreateWindow("Card Test",100,100,500,500,0,13) Global Canvas = CreateCanvas(0,0,500,500,winMain) Global img = LoadImage("image.png") SetBuffer CanvasBuffer(Canvas) ; create the timer Global timer = CreateTimer(60) Global timerframes Global t% = InitializeDeck (QueryObject(Canvas,1)) If t = 0 Then Notify("Could not initialize qcards32.dll. Result: " + t%) EndIf ; main loop Repeat WaitEvent() Select EventID() Case $803 End Case $4001 ; Timer tick totalticks = EventData() ; get the total amount of ticks ; that the timer has passed For tck = timerframes To totalticks timeframes=timerframes+1 Next draw() End Select Forever ; draw graphics to screen Function draw() Cls DrawCard (QueryObject(Canvas,1),6,200,y) DrawImage(img,100,200) FlipCanvas Canvas End Function
the decls file contains
.lib "Qcard32.dll" InitializeDeck% (hWnd%) DrawCard% (hWnd%, nCard%, nxLoc%, nyLoc%)
the functions are described in the docs as:
BOOL InitializeDeck(hWnd)
DrawCard (hWnd, nCard, nxLoc, nyLoc)
THe dll is here http://www.telusplanet.net/public/stevem/
Thanks for your help