本文整理汇总了C#中Figure.SetSize方法的典型用法代码示例。如果您正苦于以下问题:C# Figure.SetSize方法的具体用法?C# Figure.SetSize怎么用?C# Figure.SetSize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Figure
的用法示例。
在下文中一共展示了Figure.SetSize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PositionSnapshot
public PositionSnapshot(ArrayList pos, int width,
int height)
{
Gtk.Window win =
new Gtk.Window (Gtk.WindowType.
Toplevel);
win.Realize ();
map = new Gdk.Pixmap (win.GdkWindow, width,
height);
gc = new Gdk.GC (map);
FontDescription fontdesc =
GetFontDesc (width, height);
GetCoordLayoutDetails (win.PangoContext,
fontdesc);
border_color = new Gdk.Color (0, 0, 0);
// blacksq_color = new Gdk.Color (200, 200, 200);
// whitesq_color = new Gdk.Color (240, 240, 240);
blacksq_color =
new Gdk.Color (250, 120, 32);
whitesq_color =
new Gdk.Color (255, 250, 170);
background_color =
new Gdk.Color (255, 255, 255);
foreground_color = new Gdk.Color (0, 0, 0);
// arrow_color = new Gdk.Color (159, 148, 249);
arrow_color = new Gdk.Color (117, 6, 6);
// blacksq_color = new Gdk.Color(210, 60, 0);
// whitesq_color = new Gdk.Color(236, 193, 130);
// outer box, coord, inner box
ComputeSizes (width, height);
figure = new Figure ();
position = new Position (pos);
figure.SetSize (size);
DrawBackground ();
DrawPosition ();
}