コード例 #1
0
ファイル: SolidBrushHandler.cs プロジェクト: mhusen/Eto
		public override void Draw(object control, GraphicsHandler graphics, RectangleF rect)
		{
			graphics.Control.SetFillColor((CGColor)control);

			graphics.Control.FillRect(rect.ToNS());
		}
コード例 #2
0
ファイル: GraphicsHandler.cs プロジェクト: picoe/Eto
		public void SetClip(RectangleF rectangle)
		{
			RewindTransform();
			RewindClip();
			clipPath = null;
			clipBounds = currentTransform.TransformRect(rectangle.ToNS());
			ApplyClip();
			ApplyTransform();
		}