java实现电⼦签名_javaswing实现⼿写板电⼦签名系统java swing实现⼿写板电⼦签名系统
⽀持 ⼿写板 ,触摸屏电脑,⽀持压强 压感效果.........................
部分代码  MyLeftPanel.java
public void paintComponent(Graphics g)
{
super.paintComponent(g);
int height=getHeight();
int width=getWidth();
ImageIcon imageIcon;
imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_02.gif"));
MyUIUtils.DrawBufferedImageCutFillH(g, 0, 0, 26, Image(),null);
imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_03.gif"));
MyUIUtils.DrawBufferedImageCutFillW(g,26,0,width-26,8, Image(), null);//上 完
imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_07.gif"));
MyUIUtils.DrawBufferedImageCutFillH(g,width-9, 8,9,Image(), null);//右 完
imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_16.gif"));
MyUIUtils.DrawBufferedImageCutFillW(g,26 , height-9,width-26-9,9, Image(),null);//下 完
imageIcon=null;
}
部分代码 MyRightPanel.java
public void paintComponent(Graphics g)
{
super.paintComponent(g);
//int height=getHeight();
//int width=getWidth();
int h2=53;
ImageIcon imageIcon;
imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_04.gif"));
g.Image(), 0, 0,285,117, null);//最上 完
imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_08.gif"));
g.Image(), 0, 117,25,308, null);//左边 完
imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_11.gif"));
g.Image(), 25, 117,238,h2+74+h2+75+h2, null);
//imageIcon=new ImageIcon(getClass().getResource("E-Signature_13.gif"));
//g.Image(), 0, 0,238,75,this);
imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_10.gif"));
g.Image(), 25+238, 117,22,308, null);//右边 完imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_05.gif"));
g.Image(), 285, 0,18,904, null);//最右边 完
imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_15.gif"));
g.Image(), 0, 285+117,285,479, null);//最下
javaswing实现购买imageIcon=null;
}
程序算简单的啦。。。⼿写板 使⽤了开源的Jpen驱动。。⽀持全部⼿写板硬件。。。
⽀持 ⼿写板 ,触摸屏电脑,⽀持压强 压感效果.........................
难点是美⼯给的图⽚的重绘和整合和切割。
电⼦⼿写板签名。。随⼼所欲。。。。。有问题的话 QQ1163551688联系我。。
--------------------------------------------------------------------------------------------
贴图说话。。。。
完。。。。难点是美⼯给的图⽚的重绘和整合和切割。。。。。。。。。。。。

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。