C# 2.0 在Picturebox绘制 网格线
来源:互联网 发布:知商金融李文超 编辑:程序博客网 时间:2024/06/06 07:20
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Roading001
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
{
drawGrids(e);
}
private void drawGrids(PaintEventArgs e)
{
Graphics g = e.Graphics;
Pen myPen = Pens.Blue;
for (int i = 0; i < ClientRectangle.Width; i++)
{
g.DrawLine(myPen, new Point(i, 0), new Point(i, ClientRectangle.Bottom));
i += 10;
}
for (int j = 0; j < ClientRectangle.Height; j++)
{
g.DrawLine(myPen, new Point(0, j), new Point(ClientRectangle.Right, j));
j += 10;
}
}
}
}
- C# 2.0 在Picturebox绘制 网格线
- WPF绘制网格线
- ListControl控件绘制网格线
- C# 判断鼠标是否在picturebox上
- C#将数据库图片显示在pictureBox
- 【VB.NET2010】在PictureBox上绘制文字的相关问题
- 让OpenCV中的IplImage显示在C#的PictureBox上
- OpenCV中的IplImage显示在C#的PictureBox上
- C# 从硬盘托图片在picturebox中打开
- C# 在PictureBox 中绘图防止闪烁的办法
- 在c#中如何对picturebox设置一个滚动条
- C# 控件上绘制可调透明度的图片(PictureBox为例)
- Transparent PictureBox in C#
- c# winform pictureBox
- c# picturebox上画图
- C# 图形框pictureBox
- C# 用二进制将图片保存在数据库里再读出来显示在pictureBox中
- 如何真正是在C#中PictureBox在其他容器中背景透明
- Top tier conferences & journals in Computer Science Area
- 提高效率 十条关于Gmail附件的超级建议
- 驱动动态加载
- media 播放器
- 欧盟无条件批准甲骨文收购Sun
- C# 2.0 在Picturebox绘制 网格线
- 与mapguide 的双向查询之一
- Linux 用户(user)和用户组(group)管理概述
- JSF第一步
- Linux用户管理二 用户(User)和用户组(Group)配置文件详解
- 开源项目--JCIFS
- 实体间联系
- ㈠SpringSecurity基本配置(见工程springsecurity01)
- 喜欢就来看看