public ConcurrentDrawer(int length, int width) { graph_size = new SizeStruct(length, width); position_pool = new ConcurrentCachedPositonPool(Math.Max(length, width)); max_x = (int)(0.6 * length); max_y = (int)(0.6 * length); }
public SingleThreadDrawer(int length, int width) { graph_size = new SizeStruct(length, width); position_pool = new CachedPositonPool(Math.Max(length, width)); max_x = (int)(0.6 * length); max_y = (int)(0.6 * length); }
public CrossBackgroundDrawer(int length, int width, Color background_color, Color ruler_color, int extend_width = 1) : base(length, width, background_color) { this.extend_width = extend_width >= 0 ? extend_width : 1; this.ruler_color = ruler_color; size_struct = new SizeStruct(length, width); }
public BackgroundDrawer(int length, int width, Color background_color) { this.max_x = (length >> 1) + 1; this.max_y = (width >> 1) + 1; this.background_color = background_color; size_struct = new SizeStruct(length, width); }
public PizzaDetailViewModel() { Amount = 1; CurrentSize = new SizeStruct { Size = (int)Size.normal, Name = "Ĺrednia" }; _size = CurrentSize; }
public Canvas(int length, int width, IBackgroundDrawer background_drawer = null, bool need_reset = true) { graph_size = new SizeStruct(length, width); if (background_drawer != null) { if (background_drawer.GraphSize != graph_size) { throw new DifferentGraphSizeException(); } this.background_drawer = background_drawer; } else { this.background_drawer = new NoneBackgroundDrawer(length, width); } max_x = (length + 1) >> 1; max_y = (width + 1) >> 1; min_x = max_x - length; min_y = max_y - width; if (need_reset) { InternalReset(); } }
public extern static bool UpdateLayeredWindow(IntPtr handle, IntPtr hdcDst, ref PointStruct pptDst, ref SizeStruct pSize, IntPtr hDc, ref PointStruct pptSrc, int crKey, ref BlendFunctionStruct pBlend, int dwFlags);
public NoneBackgroundDrawer(int length, int width) { size_struct = new SizeStruct(length, width); }