I have made it in DarkEngine
'We dont need these for DarkEngine
Dim m_iBitmap As Integer = 10
Dim m_iImage As Integer = 10
Dim m_iID As Integer = 20
'Change them as you like ;)
Dim iWidth As Integer = 300
Dim iHeight As Integer = 50
Dim m_iX As Integer = 50
Dim m_iY As Integer = DarkDisplay.ScreenHeight - 70
Dim bm As New DarkBitmap(iWidth, iHeight)
' draw to the new bitmap
'oDBBitmap.SetCurrentBitmap(m_iBitmap)
bm.SetCurrent()
' set the foreground and background colours to black
'oDB2D.Ink(RGB(0, 0, 0), RGB(0, 0, 0))
DarkBasic2D.Ink(RGB(0, 0, 0), RGB(0, 0, 0))
' draw a black box onto the bitmap
'oDB2D.Box(0, 0, iWidth, iHeight)
DarkBasic2D.Box(0, 0, iWidth, iHeight)
' set text font and size
'oDBText.SetTextFont("arial")
'oDBText.SetTextSize(13)
DarkText.SetTextFont("arial", 16)
' change the ink to match the colour we want for the text
'oDB2D.Ink(RGB(255, 255, 255), RGB(255, 255, 255))
DarkBasic2D.Ink(RGB(255, 255, 255), RGB(255, 255, 255))
' now draw our text onto the bitmap
'oDBText.Text(0, 2, "Dette er en test")
DarkText.Text(0, 2, "Dette er i DarkEngine")
' grab a section of the bitmap and make an image from it
'oDBImage.GetImage(m_iImage, 0, 0, iWidth, iHeight)
Dim im As New DarkImage(0, 0, iWidth, iHeight)
' now restore drawing operations to the screen
'oDBBitmap.SetCurrentBitmap(0)
' bm.SetCurrent()???
' create a sprite and use the new image
'oDBSprite.Sprite(m_iID, m_iX, m_iY, m_iImage)
Dim sp As New DarkSprite(m_iX, m_iY, im)
' delete the bitmap
'oDBBitmap.DeleteBitmap(m_iBitmap)
bm.Delete()
Niels Henriksen
Working on a (MMO)RPG right now in DarkEngine
http://www.tigernet.dk - Send SMS to mobile online (will come in english soon)