Hello, I am trying to load a bitmap, set it as current and copy parts of it into images, but for some reason I don't get anything on the screen. I am able to load images directly and draw them though.
This is what I am trying to do:
public static void GameLoop()
{
DarkGDK.Basic2D.Bitmap bmp;
DarkGDK.Basic2D.Image myimage;
DarkGDK.Core.SyncOn();
DarkGDK.Core.SyncRate(60);
DarkGDK.IO.File.SetCurrentDirectory("../../../Media");
bmp = new DarkGDK.Basic2D.Bitmap("hellosprite.png");
bmp.SetCurrent();
myimage = new DarkGDK.Basic2D.Image(0, 0, 500, 500);
while (DarkGDK.Engine.LoopGDK)
{
myimage.Paste(10, 10, false);
DarkGDK.Core.Sync();
}
}
Does anybody have an idea what I am doing wrong ?
Thanks in advance