A question, but i got code that works for both, so well, hereHere is the SlimDX version:
This is, very slow at higher resolutions, and also not that fast at lower as wellones. I don´tdon't quite understand why, as iI thought, it would be faster assince it uses the GPU.
newImage = Image.FromStream(ms); gmp.DrawImage(newImage, 0, 0); It´sIt's just that inside a loop (SlimDX has it´sits own loop inside the message pump).
Now canCan you tell me, why drawing is faster? Cause from From my understanding, drawing with Panels etc,and such is slow, as it´sit's made for complete compatibility, and isn´tisn't optimized for hardware acceleration.
And this is supposed to redraw constantly as a new image will arrive all the time (msms is from a TCP Stream then put in a memorystream when received).
So iI basically ask for an analyzeanalysis of the code:).