You should create your bitmap with the size of your pan and zoom image. You can also create it with the pan and zoom image and a null render transform. For example:
WriteableBitmap bitmap =
Note that your pan and zoom image needs to be rendered before this is done.
Once this executes your bitmap's Pixels property will contain the rendered image.
If you need to get the bytes for each pixel, you can iterate over the Pixels array and call BitConverter.GetBytes() for each pixel. The byte array returned from get bytes is in the RGBA format. The first byte is red, second is green etc.
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal
to submit ideas, feedback and vote for them.