Discussion:
large textures
(too old to reply)
Martin P.
2009-04-30 07:54:20 UTC
Permalink
Hi,

i want to build a bitmap viewer with managed directx.

i have a bitmap (4000x4000).
i use the textureloader class.
i can show it, zoom-in, zoom-out and move it.
okay ..

now i want to load a different bitmap (same size)

it takes a few seconds to load one bitmap and i try to load it faster.
but how?

with Pointer ?
Or can i copy the new Bitmap Data to the memory of the texture?

i need help.

thx a lot
Martin
Wizfrog
2009-05-29 02:06:20 UTC
Permalink
Have you tried Texture.FromFile()
it takes a Bitmap as input.

no idea if it's fast though...

Loading...