I'm trying to make a GUI class for my game and everything seems fine except the 'form sprites' don't show.
What I'm going is:
Loading the 'Skin image'
Paste the image to a bitmap
Create 9 images using getimage() - topleft, top, topright etc.
Delete the bitmap
Delete the loaded image
Then...
Create bitmap the required size of the form
Create 9 sprites and position and size them to make the form
Use getimage to get the final image of the form
Delete the 9 sprites
The class then has an Update method which pastes the sprite created to the screen at the coordinates givem and is called each loop.
The making of the form seems fine because if I don't delete the 9 sprites the form shows on screen at 0, 0 but it this is the 9 sprites not the sprite I want to show.
Also if I try pasting the image created from the bitmap with the 9 sprites I get a black square at the position the form should be and of the correct size.
Now my guess is that the 9 sprites aren't being drawn to the bitmap and therefore aren't being shown because they are black.
Any idea if there's a way around thisss?
Thanks, Malb
Don't make war, make tea.