本文整理匯總了C#中System.Drawing.Size.GetSizeInMillimeters方法的典型用法代碼示例。如果您正苦於以下問題:C# Size.GetSizeInMillimeters方法的具體用法?C# Size.GetSizeInMillimeters怎麽用?C# Size.GetSizeInMillimeters使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Drawing.Size
的用法示例。
在下文中一共展示了Size.GetSizeInMillimeters方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: DrawBox
public void DrawBox(Point topLeft, Size size)
{
var boxDefinition = new BoxDefinition(topLeft.GetPointInMillimeters(), size.GetSizeInMillimeters());
_graphicsCommands.Add(new GraphicsCommand(Command.DrawBox, boxDefinition));
}
示例2: 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));
}
示例3: PageObject
public PageObject(int objectNumber, Size size)
: base(objectNumber)
{
_size = size.GetSizeInMillimeters();
}