本文整理汇总了C#中Point.GetPointInMillimeters方法的典型用法代码示例。如果您正苦于以下问题:C# Point.GetPointInMillimeters方法的具体用法?C# Point.GetPointInMillimeters怎么用?C# Point.GetPointInMillimeters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Point
的用法示例。
在下文中一共展示了Point.GetPointInMillimeters方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DrawLine
public void DrawLine(Point start, Point end)
{
var lineDefinition = new LineDefinition(start.GetPointInMillimeters(), end.GetPointInMillimeters());
_graphicsCommands.Add(new GraphicsCommand(Command.DrawLine, lineDefinition));
}
示例2: DrawCircle
public void DrawCircle(Point center, int radius)
{
var circleDefinition = new CircleDefinition(center.GetPointInMillimeters(), radius.ToMillimeters());
_graphicsCommands.Add(new GraphicsCommand(Command.DrawCircle, circleDefinition));
}
示例3: DrawImage
public void DrawImage(Point topLeft, Size size, ImageType imageType, Stream sourceStream)
{
var xObject = _owner.AddXObject(imageType, sourceStream);
var imageDefinition = new ImageDefinition(topLeft.GetPointInMillimeters(), size.GetSizeInMillimeters(), imageType, sourceStream, xObject);
_graphicsCommands.Add(new GraphicsCommand(Command.DrawImage, imageDefinition));
}
示例4: DrawBox
public void DrawBox(Point topLeft, Size size)
{
var boxDefinition = new BoxDefinition(topLeft.GetPointInMillimeters(), size.GetSizeInMillimeters());
_graphicsCommands.Add(new GraphicsCommand(Command.DrawBox, boxDefinition));
}