?? idaimagecreator.java
字號:
//*****************************************************************
//
// JAVA Source for com.idautomation.pdf417; 3.1
//
// Copyright, IDAutomation.com, Inc. 2000-2004.
// All rights reserved.
//
// http://www.IDAutomation.com/java/
//
// NOTICE:
// You may incorporate our Source Code in your application
// only if you own a valid Java Developer License
// from IDAutomation.com, Inc. and the copyright notices
// are not removed from the source code.
//
//*****************************************************************
package com.idautomation.barcode.pdf417;
import java.awt.*;
/** This class enables the paint() method in the main BarCode class to
rotate a barcode when it is not visable. */
public class IDAImageCreator {
private java.awt.Image im;
public Graphics g;
public IDAImageCreator() {
}
public Image getImage( int w,int h) {
int s=w;
if (h>w) s=h;
// create square image
im=new java.awt.image.BufferedImage(s,s,java.awt.image.BufferedImage.TYPE_BYTE_INDEXED);
g = ((java.awt.image.BufferedImage) im).createGraphics();
return im;
}
public Graphics getGraphics() {
return g;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -