示例#1
0
文件: Form1.cs 项目: jenesepas/csharp
        private bool EnumMetaCB(EmfPlusRecordType recordType, int flags, int dataSize,
                                IntPtr data, PlayRecordCallback callbackData)
        {
            string str = "";

            // Play only EmfPlusRecordType.FillEllipse records.
            if (recordType == EmfPlusRecordType.FillEllipse ||
                recordType == EmfPlusRecordType.FillRects ||
                recordType == EmfPlusRecordType.DrawEllipse ||
                recordType == EmfPlusRecordType.DrawRects)
            {
                str = "Record type:" + recordType.ToString() +
                      ", Flags:" + flags.ToString() +
                      ", DataSize:" + dataSize.ToString() +
                      ", Data:" + data.ToString();
                MessageBox.Show(str);
            }
            return(true);
        }