history.pushState(null, null, location.href);
window.onpopstate = function () {
history.go(1);
};
Ознакомьтесь с уже протестированными решениями для 3d-вечеринок, такими как https://github.com/wilsonvargas/ScreenshotPlugin
Обновление:
public byte[] LoadImage(string filename)
{
var image UIImage.FromFile(filename);
using (NSData imageData = image.AsPNG()) {
byte[] myByteArray = new Byte[imageData.Length];
System.Runtime.InteropServices.Marshal.Copy(imageData.Bytes,myByteArray, 0, Convert.ToInt32(imageData.Length));
return myByteArray;
}