@An_J wrote:
Hello all,
1.
Loading texture bigger than 4096using (var stream = new FileStream("Content/4097x1000.png", FileMode.Open)){
_tex = (Texture2D.FromStream(GraphicsDevice, stream));
}
causes:System.InvalidOperationException: This image format is not supported ---> SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments]
2.
Setting window size bigger than 4096:_graphics.PreferredBackBufferWidth = 4097;
causes:Microsoft.Xna.Framework.Graphics.NoSuitableGraphicsDeviceException: Failed to create graphics device! ---> SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments]
Texture size is not a big problem -- I can slice bitmaps to 4096 segments.
The main issues for me is the limit for window size - I need more than 4096 in width... much more. Is there any way to fix it?
Posts: 6
Participants: 4