You can draw it to a bitmap, then use dbGetImage(); to grab each card
Let's say you have it 13 by 4.
dbCreateBitmap(1,13*cardWidth,4*cardHeight);
dbSetCurrentBitmap(1);
dbLoadImage("cards.png",1);
dbPasteImage(1,0,0);
int xc,yc;
for(xc=0;xc<13;xc++){
for(xy=0;xy<4;xy++){
dbGetImage(imageNumber,xc*cardWidth,xy*cardHeight,xc*cardWidth+cardWidth,xy*cardHeight+cardHeight,1);
imageNumber++;
}
}
Or something to that effect. Unfortunately, there is no internal function (that I know of) to do that.
My site, for various stuff that I make.