G
Guest
Hello,
I have a question confused me a long time.
I am working on DirectDraw .NET a while.
And I want to copy data to surface, but I found Surface.Lock return
System.Array.
I tried to cast it to byte[],byte[,], but in vain( It will crash without any
exception).
Before I saw somebody said he used unsafe code to slove the problem on
newsgroup, but without any sample codes.
Can anyone give me some suggestion or ways to slove it? thanks a lot.
I have a question confused me a long time.
I am working on DirectDraw .NET a while.
And I want to copy data to surface, but I found Surface.Lock return
System.Array.
I tried to cast it to byte[],byte[,], but in vain( It will crash without any
exception).
Before I saw somebody said he used unsafe code to slove the problem on
newsgroup, but without any sample codes.
Can anyone give me some suggestion or ways to slove it? thanks a lot.