本文整理汇总了C#中NewTOAPIA.BufferChunk.NextUtf8String方法的典型用法代码示例。如果您正苦于以下问题:C# BufferChunk.NextUtf8String方法的具体用法?C# BufferChunk.NextUtf8String怎么用?C# BufferChunk.NextUtf8String使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewTOAPIA.BufferChunk
的用法示例。
在下文中一共展示了BufferChunk.NextUtf8String方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReceiveData
//.........这里部分代码省略.........
case GDI32.EMR_POLYLINETO:
{
Point[] points = UnpackPoints(aRecord);
//PolyLineTo(points);
}
break;
case GDI32.EMR_POLYPOLYLINE:
break;
case GDI32.EMR_POLYTEXTOUTA:
case GDI32.EMR_POLYTEXTOUTW:
break;
case GDI32.EMR_EXTTEXTOUTA:
case GDI32.EMR_EXTTEXTOUTW:
{
int x = aRecord.NextInt32();
int y = aRecord.NextInt32();
int strLength = aRecord.NextInt32();
string text = (string)aRecord;
DrawString(x, y, text);
}
break;
case GDI32.EMR_EXTCREATEFONTINDIRECTW:
{
LOGFONT newFont = new LOGFONT();
int faceNameLength = aRecord.NextInt32();
newFont.lfFaceName = aRecord.NextUtf8String(faceNameLength);
newFont.lfHeight = aRecord.NextInt32();
newFont.lfCharSet = aRecord.NextByte();
newFont.lfClipPrecision = aRecord.NextByte();
newFont.lfEscapement = aRecord.NextInt32();
newFont.lfItalic = aRecord.NextByte();
newFont.lfOrientation = aRecord.NextInt32();
newFont.lfOutPrecision = aRecord.NextByte();
newFont.lfPitchAndFamily = aRecord.NextByte();
newFont.lfQuality = aRecord.NextByte();
newFont.lfStrikeOut = aRecord.NextByte();
newFont.lfUnderline = aRecord.NextByte();
newFont.lfWeight = aRecord.NextInt32();
newFont.lfWidth = aRecord.NextInt32();
Guid uniqueID = this.UnpackGuid(aRecord);
CreateFont(newFont.lfFaceName, newFont.lfHeight, uniqueID);
}
break;
case GDI32.EMR_CREATEMONOBRUSH:
case GDI32.EMR_EXTCREATEPEN:
case GDI32.EMR_CREATEDIBPATTERNBRUSHPT:
break;
case GDI32.EMR_FILLRGN:
case GDI32.EMR_FRAMERGN:
case GDI32.EMR_INVERTRGN:
case GDI32.EMR_PAINTRGN:
case GDI32.EMR_EXTSELECTCLIPRGN:
break;