I am new to using WriteableBitmap.
I am able to update the WriteableBitmap to show data. But I am stumped on how to shift a writeableBitmap to the right by one cell.
After shifting over once cell, I am going to add a new column on the left and of course have thrown away the last column on the right.
Is there a good book or reference site that has more documentation on WriteableBitmap.
I am trying to use CopyPixel and WritePixel. But WritePixel gives me an execution error:
Value does not fall within the expected range
here is the code I am trying to run:
_writeableBitmapItem.CopyPixels (new Int32Rect( 0, 0, (int)(Width - 1), (int)Height), buffer, _writeableBitmapItem.BackBufferStride - 1, 0);
_writeableBitmapItem.WritePixels (new Int32Rect ( 1, 0, (int)(Width), (int)Height), buffer, _writeableBitmapItem.BackBufferStride, 0);
Can anyone offer a suggestion?