RestoreSuspendedState() public static method

public static RestoreSuspendedState ( Photo parent, BinaryReader reader ) : EditGroup
parent Photo
reader BinaryReader
return EditGroup
示例#1
0
文件: Photo.cs 项目: cugayck5/stuart
        public void RestoreSuspendedState(CanvasDevice device, BinaryReader reader)
        {
            bitmapFormat = (DirectXPixelFormat)reader.ReadInt32();
            bitmapData   = reader.ReadByteArray();

            Size = reader.ReadVector2();

            reader.ReadCollection(Edits, () => EditGroup.RestoreSuspendedState(this, reader));

            RecoverAfterDeviceLost(device);
        }