Hi.. I'm doing the usual:
SurfaceDescription description = new SurfaceDescription();
Bitmap bmp = new Bitmap(mapPath);
map = new Surface(bmp, description, screen);
...
Rectangle sourceRect = new Rectangle(0, 0, map.SurfaceDescription.Width, map.SurfaceDescription.Height);
primary.Draw(destRect, map, sourceRect, DrawFlags.Wait);
...
this runs pretty as long as the image "mapPath" refers to is smaller than my display (1280*1024).
When I use an image with say 3000*3000 it seems to get clipped to screen size although map.SurfaceDescription.Width (and .Height) contain the correct values (3000)...
Think theres only a simple flag missing or so...
SurfaceDescription description = new SurfaceDescription();
Bitmap bmp = new Bitmap(mapPath);
map = new Surface(bmp, description, screen);
...
Rectangle sourceRect = new Rectangle(0, 0, map.SurfaceDescription.Width, map.SurfaceDescription.Height);
primary.Draw(destRect, map, sourceRect, DrawFlags.Wait);
...
this runs pretty as long as the image "mapPath" refers to is smaller than my display (1280*1024).
When I use an image with say 3000*3000 it seems to get clipped to screen size although map.SurfaceDescription.Width (and .Height) contain the correct values (3000)...
Think theres only a simple flag missing or so...