Java Code Examples for java.awt.image.BufferedImage.TYPE_INT_BGR

The following are Jave code examples for showing how to use TYPE_INT_BGR of the java.awt.image.BufferedImage class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: kettle_support_kettle8.0   File: Captcha.java   View Source Code Vote up 6 votes
/**
 * 生成随机图片
 */
public BufferedImage genRandomCodeImage(StringBuffer randomCode) {
	// BufferedImage类是具有缓冲区的Image类
	BufferedImage image = new BufferedImage(width, height,
			BufferedImage.TYPE_INT_BGR);
	// 获取Graphics对象,便于对图像进行各种绘制操作
	Graphics g = image.getGraphics();
	// 设置背景色
	// g.setColor(getRandColor(200, 250));
	g.fillRect(0, 0, width, height);

	// 设置干扰线的颜色
	g.setColor(getRandColor(110, 133));

	// 绘制干扰线
	for (int i = 0; i <= lineNum; i++) {
		drowLine(g);
	}
	// 绘制随机字符
	g.setFont(getRandomFont());
	for (int i = 1; i <= strNum; i++) {
		randomCode.append(drowString(g, i));
	}
	g.dispose();
	return image;
}
 
Example 2
Project: VASSAL-src   File: ImageUtils.java   View Source Code Vote up 6 votes
@SuppressWarnings("fallthrough")
public static BufferedImage coerceToIntType(BufferedImage img) {
  // ensure that img is a type which GeneralFilter can handle
  switch (img.getType()) {
  case BufferedImage.TYPE_INT_RGB:
  case BufferedImage.TYPE_INT_ARGB:
  case BufferedImage.TYPE_INT_ARGB_PRE:
  case BufferedImage.TYPE_INT_BGR:
    return img;
  default:
    return toType(img, img.getTransparency() == BufferedImage.OPAQUE ?
      BufferedImage.TYPE_INT_RGB :
      getCompatibleTranslucentImageType() == BufferedImage.TYPE_INT_ARGB ?
        BufferedImage.TYPE_INT_ARGB : BufferedImage.TYPE_INT_ARGB_PRE);
  }
}
 
Example 3
Project: FileUpload2Spring   File: EasyImage.java   View Source Code Vote up 6 votes
/**
 * Rotates image 90 degrees to the right.
 */
public void rotateRight(){
    int width = bufferedImage.getWidth();
    int height = bufferedImage.getHeight();
    
    BufferedImage result = new BufferedImage(height, 
            width, BufferedImage.TYPE_INT_BGR);
    
    for (int x = 0; x < width; x ++) {
        for (int y = 0; y < height; y ++) {
            int rgb = bufferedImage.getRGB(x, y);
            result.setRGB(height-y-1, x, rgb); 
        }
    }
    
    bufferedImage = result;
    
}
 
Example 4
Project: FileUpload2Spring   File: EasyImage.java   View Source Code Vote up 6 votes
/**
 * Rotates image 180 degrees.
 */
public void rotate180(){
    int width = bufferedImage.getWidth();
    int height = bufferedImage.getHeight();
    
    BufferedImage result = new BufferedImage(width, 
            height, BufferedImage.TYPE_INT_BGR);
    
    for (int x = 0; x < width; x ++) {
        for (int y = 0; y < height; y ++) {
            int rgb = bufferedImage.getRGB(x, y);
            result.setRGB(width-x-1, height-y-1, rgb); 
        }
    }
    
    bufferedImage = result;
    
}
 
Example 5
Project: FileUpload2Spring   File: EasyImage.java   View Source Code Vote up 6 votes
/**
 * Flips the image horizontally
 */
public void flipHorizontally(){
    int width = bufferedImage.getWidth();
    int height = bufferedImage.getHeight();
    
    BufferedImage result = new BufferedImage(width, 
            height, BufferedImage.TYPE_INT_BGR);
    
    for (int x = 0; x < width; x ++) {
        for (int y = 0; y < height; y ++) {
            int rgb = bufferedImage.getRGB(x, y);
            result.setRGB(width-x-1, y, rgb); 
        }
    }
    
    bufferedImage = result;
    
}
 
Example 6
Project: FileUpload2Spring   File: EasyImage.java   View Source Code Vote up 6 votes
/**
 * Flips the image vertically.
 */
public void flipVertically(){
    int width = bufferedImage.getWidth();
    int height = bufferedImage.getHeight();
    
    BufferedImage result = new BufferedImage(width, 
            height, BufferedImage.TYPE_INT_BGR);
    
    for (int x = 0; x < width; x ++) {
        for (int y = 0; y < height; y ++) {
            int rgb = bufferedImage.getRGB(x, y);
            result.setRGB(x, height-y-1, rgb); 
        }
    }
    
    bufferedImage = result;
    
}
 
Example 7
Project: openjdk-jdk10   File: ColConvTest.java   View Source Code Vote up 6 votes
static String getImageTypeName(int type) {
    switch(type) {
        case BufferedImage.TYPE_INT_ARGB:
            return "TYPE_INT_ARGB";
        case BufferedImage.TYPE_INT_RGB:
            return "TYPE_INT_RGB";
        case BufferedImage.TYPE_INT_BGR:
            return "TYPE_INT_BGR";
        case BufferedImage.TYPE_INT_ARGB_PRE:
            return "TYPE_INT_ARGB_PRE";
        case BufferedImage.TYPE_3BYTE_BGR:
            return "TYPE_3BYTE_BGR";
        case BufferedImage.TYPE_4BYTE_ABGR:
            return "TYPE_4BYTE_ABGR";
        case BufferedImage.TYPE_4BYTE_ABGR_PRE:
            return "TYPE_4BYTE_ABGR_PRE";
        case BufferedImage.TYPE_BYTE_BINARY:
            return "TYPE_BYTE_BINARY";
        case BufferedImage.TYPE_BYTE_GRAY:
            return "TYPE_BYTE_GRAY";
        case BufferedImage.TYPE_BYTE_INDEXED:
            return "TYPE_BYTE_INDEXED";
        case BufferedImage.TYPE_USHORT_555_RGB:
            return "TYPE_USHORT_555_RGB";
        case BufferedImage.TYPE_USHORT_565_RGB:
            return "TYPE_USHORT_565_RGB";
        case BufferedImage.TYPE_USHORT_GRAY:
            return "TYPE_USHORT_GRAY";
    }
    return "UNKNOWN";
}
 
Example 8
Project: jdk8u-jdk   File: OpCompatibleImageTest.java   View Source Code Vote up 6 votes
private static String describeType(int type) {
    switch(type) {
    case BufferedImage.TYPE_3BYTE_BGR:
        return "TYPE_3BYTE_BGR";
    case BufferedImage.TYPE_4BYTE_ABGR:
        return "TYPE_4BYTE_ABGR";
    case BufferedImage.TYPE_BYTE_GRAY:
        return "TYPE_BYTE_GRAY";
    case BufferedImage.TYPE_INT_ARGB:
        return "TYPE_INT_ARGB";
    case BufferedImage.TYPE_INT_BGR:
        return  "TYPE_INT_BGR";
    case BufferedImage.TYPE_INT_RGB:
        return "TYPE_INT_RGB";
    case BufferedImage.TYPE_BYTE_INDEXED:
        return "TYPE_BYTE_INDEXED";
    default:
        throw new RuntimeException("Test FAILED: unknown type " + type);
    }
}
 
Example 9
Project: MineCamera   File: PictureFactory.java   View Source Code Vote up 5 votes
public static BufferedImage FormattingPicture(BufferedImage imageIn) {

		BufferedImage image = new BufferedImage(854, 480, BufferedImage.TYPE_INT_BGR);
		Graphics2D g = (Graphics2D) image.getGraphics();
		g.drawImage(imageIn, 0, 0, 854, 480, null);
		return image;
	}
 
Example 10
Project: AgentWorkbench   File: BasicGraphGui.java   View Source Code Vote up 5 votes
/**
 * Export the current graph as image by using specified parameters. 
 *
 * @param vv the VisualizationViewer
 * @param file the current file to export to
 */
private void exportAsImage(BasicGraphGuiVisViewer<GraphNode, GraphEdge> vv, String path2File, String extension) {

	// --- If the VisualizationViewer is null ---------
	if (vv == null) {
		return;
	}
	// --- Overwrite existing file ? ------------------
	File writeFile = new File(path2File);
	if (writeFile.exists()) {
		String msgHead = "Overwrite?";
		String msgText = "Overwrite existing file?";
		int msgAnswer = JOptionPane.showInternalConfirmDialog(this, msgText, msgHead, JOptionPane.YES_NO_OPTION);
		if (msgAnswer == JOptionPane.NO_OPTION) {
			return;
		}
	}

	// --- Lets go ! ----------------------------------
	int width = vv.getSize().width;
	int height = vv.getSize().height;

	BufferedImage bi = new BufferedImage(width, height, BufferedImage.TYPE_INT_BGR);
	Graphics2D graphics = bi.createGraphics();
	graphics.fillRect(0, 0, width, height);

	boolean wasDoubleBuffered=vv.isDoubleBuffered();
	vv.setDoubleBuffered(false);
	vv.paint(graphics);
	vv.paintComponents(graphics);
	vv.setDoubleBuffered(wasDoubleBuffered);

	try {
		ImageIO.write(bi, extension, writeFile);

	} catch (Exception e) {
		e.printStackTrace();
	}

}
 
Example 11
Project: openjdk-jdk10   File: BMPSubsamplingTest.java   View Source Code Vote up 5 votes
private String getImageTypeName(int t) {
    switch(t) {
      case BufferedImage.TYPE_INT_RGB:
          return "TYPE_INT_RGB";
      case BufferedImage.TYPE_INT_BGR:
          return "TYPE_INT_BGR";
      case TYPE_INT_GRB:
          return "TYPE_INT_GRB";
      case TYPE_INT_GBR:
          return "TYPE_INT_GBR";
      case TYPE_INT_RBG:
          return "TYPE_INT_RBG";
      case TYPE_INT_BRG:
          return "TYPE_INT_BRG";
      case BufferedImage.TYPE_USHORT_555_RGB:
          return "TYPE_USHORT_555_RGB";
      case BufferedImage.TYPE_USHORT_565_RGB:
          return "TYPE_USHORT_565_RGB";
      case TYPE_USHORT_555_GRB:
          return "TYPE_USHORT_555_GRB";
      case TYPE_USHORT_555_BGR:
          return "TYPE_USHORT_555_BGR";
      case TYPE_USHORT_565_BGR:
          return "TYPE_USHORT_565_BGR";
      case BufferedImage.TYPE_3BYTE_BGR:
          return "TYPE_3BYTE_BGR";
      case TYPE_3BYTE_RGB:
          return "TYPE_3BYTE_RGB";
      case TYPE_3BYTE_GRB:
          return "TYPE_3BYTE_GRB";
      case BufferedImage.TYPE_BYTE_INDEXED:
          return "TYPE_BYTE_INDEXED";
      case TYPE_4BPP_INDEXED:
          return "TYPE_BYTE_INDEXED (4bpp)";
      default:
          throw new IllegalArgumentException("Unknown image type: " + t);
    }
}
 
Example 12
Project: jdk8u-jdk   File: BMPSubsamplingTest.java   View Source Code Vote up 5 votes
private String getImageTypeName(int t) {
    switch(t) {
      case BufferedImage.TYPE_INT_RGB:
          return "TYPE_INT_RGB";
      case BufferedImage.TYPE_INT_BGR:
          return "TYPE_INT_BGR";
      case TYPE_INT_GRB:
          return "TYPE_INT_GRB";
      case TYPE_INT_GBR:
          return "TYPE_INT_GBR";
      case TYPE_INT_RBG:
          return "TYPE_INT_RBG";
      case TYPE_INT_BRG:
          return "TYPE_INT_BRG";
      case BufferedImage.TYPE_USHORT_555_RGB:
          return "TYPE_USHORT_555_RGB";
      case BufferedImage.TYPE_USHORT_565_RGB:
          return "TYPE_USHORT_565_RGB";
      case TYPE_USHORT_555_GRB:
          return "TYPE_USHORT_555_GRB";
      case TYPE_USHORT_555_BGR:
          return "TYPE_USHORT_555_BGR";
      case TYPE_USHORT_565_BGR:
          return "TYPE_USHORT_565_BGR";
      case BufferedImage.TYPE_3BYTE_BGR:
          return "TYPE_3BYTE_BGR";
      case TYPE_3BYTE_RGB:
          return "TYPE_3BYTE_RGB";
      case TYPE_3BYTE_GRB:
          return "TYPE_3BYTE_GRB";
      case BufferedImage.TYPE_BYTE_INDEXED:
          return "TYPE_BYTE_INDEXED";
      case TYPE_4BPP_INDEXED:
          return "TYPE_BYTE_INDEXED (4bpp)";
      default:
          throw new IllegalArgumentException("Unknown image type: " + t);
    }
}
 
Example 13
Project: FileUpload2Spring   File: EasyImage.java   View Source Code Vote up 5 votes
public void crop(int startX, int startY, int endX, int endY){
    int width = bufferedImage.getWidth();
    int height = bufferedImage.getHeight();
    
    if(startX == -1){
        startX = 0;
    }
    
    if(startY == -1){
        startY = 0;
    }
    
    if(endX == -1){
        endX = width-1;
    }
    
    if(endY == -1){
        endY = height-1;
    }
    
    /*
     * 2017-03-23:ziry
     * 旧版本endY-startY+1,endX-startX+1有黑边
     * BufferedImage result = new BufferedImage(endX-startX+1, endY-startY+1, BufferedImage.TYPE_INT_BGR);
     */
    BufferedImage result = new BufferedImage(endX-startX, endY-startY, BufferedImage.TYPE_INT_BGR);
    
    for (int y = startY; y < endY; y ++) {
        for (int x = startX; x < endX; x ++) {
            int rgb = bufferedImage.getRGB(x, y);
            result.setRGB(x-startX, y-startY, rgb); 
        }
    }
    bufferedImage = result;
}
 
Example 14
Project: Image-Stegano   File: ImageUtility.java   View Source Code Vote up 5 votes
/**
 * this method convert supplied image to suitable type
 * it is needed because we need bytes of array so TYPE_INT images must be
 * converted to BYTE_BGR or so
 * @param originalImage loaded from file-chooser
 * @return 
 */

public BufferedImage convertImage(BufferedImage originalImage) {
    int newImageType = originalImage.getType();
    
    /**
     * Converting int to byte since byte array is needed later to modify 
     * the image
     */
    if (newImageType == BufferedImage.TYPE_INT_RGB
            || newImageType == BufferedImage.TYPE_INT_BGR) {
        newImageType = BufferedImage.TYPE_3BYTE_BGR;
    } else if (newImageType == BufferedImage.TYPE_INT_ARGB ||
            newImageType == BufferedImage.TYPE_CUSTOM) {
        newImageType = BufferedImage.TYPE_4BYTE_ABGR;
    } else if (newImageType == BufferedImage.TYPE_INT_ARGB_PRE) {
        newImageType = BufferedImage.TYPE_4BYTE_ABGR_PRE;
    } else {
        // no need to convert original image
        return null;
    }
    BufferedImage newImage = new BufferedImage(originalImage.getWidth(), 
            originalImage.getHeight(), newImageType);
    Graphics g = newImage.getGraphics();
    g.drawImage(originalImage, 0, 0, null);
    g.dispose();
    return newImage;
}
 
Example 15
Project: jaer   File: NonGLImageDisplay.java   View Source Code Vote up 5 votes
public void setImageSize(int sizeX, int sizeY) {
		if (sizeX != this.sizeX || sizeY != this.sizeY) {
			this.sizeX = sizeX;
			this.sizeY = sizeY;
			if (this.sizeX < 0)
				this.sizeX = 0;
			if (this.sizeY < 0)
				this.sizeY = 0;
//			this.pixmap = new Color[this.sizeX][this.sizeY];
			if (sizeX > 0 && sizeY > 0)
				this.image = new BufferedImage(this.sizeX, this.sizeY, BufferedImage.TYPE_INT_RGB);
			else 
				this.image = new BufferedImage(1, 1, BufferedImage.TYPE_INT_BGR);
		}
	}
 
Example 16
Project: openjdk-jdk10   File: TestCompressionBI_BITFIELDS.java   View Source Code Vote up 5 votes
public static void main(String[] args) throws IOException {
    // buffered image types listed below can be saved as BI_BITFIELDS BMP
    int[] types = {BufferedImage.TYPE_3BYTE_BGR,
                   BufferedImage.TYPE_USHORT_555_RGB,
                   BufferedImage.TYPE_USHORT_565_RGB,
                   BufferedImage.TYPE_BYTE_GRAY,
                   BufferedImage.TYPE_BYTE_BINARY,
                   BufferedImage.TYPE_BYTE_INDEXED,
                   BufferedImage.TYPE_INT_BGR,
                   BufferedImage.TYPE_INT_RGB};

    for (int i = 0; i < types.length; i++) {
        System.out.println("Test image " + types[i]);
        TestCompressionBI_BITFIELDS t = new TestCompressionBI_BITFIELDS();

        BufferedImage src =
            t.createTestImage(types[i]);
        System.out.println("Image for test: " + src);
        System.out.println("SampleModel: " + src.getSampleModel());

        BufferedImage dst = null;
        try {
            dst = t.writeAndRead(src);
        } catch (IOException e) {
            e.printStackTrace(System.out);
        }


        t.compareImages(src, dst);
    }
}
 
Example 17
Project: openjdk-jdk10   File: NoExtraBytesTest.java   View Source Code Vote up 5 votes
private static String getImageTypeName(int t) {
    switch(t) {
        case BufferedImage.TYPE_INT_RGB:
            return "TYPE_INT_RGB";
        case BufferedImage.TYPE_INT_BGR:
            return "TYPE_INT_BGR";
        case BufferedImage.TYPE_3BYTE_BGR:
            return "TYPE_3BYTE_BGR";
        case BufferedImage.TYPE_USHORT_555_RGB:
            return "TYPE_USHORT_555_RGB";
        case BufferedImage.TYPE_USHORT_565_RGB:
            return "TYPE_USHORT_565_RGB";
        case TYPE_INT_GRB:
            return "TYPE_INT_GRB";
        case TYPE_INT_GBR:
            return "TYPE_INT_GBR";
        case TYPE_INT_RBG:
            return "TYPE_INT_RBG";
        case TYPE_INT_BRG:
            return "TYPE_INT_BRG";
        case TYPE_INT_555_GRB:
            return "TYPE_INT_555_GRB";
        case TYPE_3BYTE_RGB:
            return "TYPE_3BYTE_RGB";
        case TYPE_3BYTE_GRB:
            return "TYPE_3BYTE_GRB";
        default:
            throw new IllegalArgumentException("Unknown image type: " + t);
    }
}
 
Example 18
Project: jdk8u-jdk   File: ColConvTest.java   View Source Code Vote up 5 votes
static String getImageTypeName(int type) {
    switch(type) {
        case BufferedImage.TYPE_INT_ARGB:
            return "TYPE_INT_ARGB";
        case BufferedImage.TYPE_INT_RGB:
            return "TYPE_INT_RGB";
        case BufferedImage.TYPE_INT_BGR:
            return "TYPE_INT_BGR";
        case BufferedImage.TYPE_INT_ARGB_PRE:
            return "TYPE_INT_ARGB_PRE";
        case BufferedImage.TYPE_3BYTE_BGR:
            return "TYPE_3BYTE_BGR";
        case BufferedImage.TYPE_4BYTE_ABGR:
            return "TYPE_4BYTE_ABGR";
        case BufferedImage.TYPE_4BYTE_ABGR_PRE:
            return "TYPE_4BYTE_ABGR_PRE";
        case BufferedImage.TYPE_BYTE_BINARY:
            return "TYPE_BYTE_BINARY";
        case BufferedImage.TYPE_BYTE_GRAY:
            return "TYPE_BYTE_GRAY";
        case BufferedImage.TYPE_BYTE_INDEXED:
            return "TYPE_BYTE_INDEXED";
        case BufferedImage.TYPE_USHORT_555_RGB:
            return "TYPE_USHORT_555_RGB";
        case BufferedImage.TYPE_USHORT_565_RGB:
            return "TYPE_USHORT_565_RGB";
        case BufferedImage.TYPE_USHORT_GRAY:
            return "TYPE_USHORT_GRAY";
    }
    return "UNKNOWN";
}
 
Example 19
Project: mumu   File: RcCaptchaFilter.java   View Source Code Vote up 4 votes
@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
	//int width = 57;// 图像宽度
	//int height = 21;// 图像高度
	int width = 80;// 图像宽度
	int height = 40;// 图像高度
	// 定义输出格式
	response.setContentType("image/jpeg");
	ServletOutputStream out = response.getOutputStream();
	// 准备缓冲图像,不支持表单
	BufferedImage bimg = new BufferedImage(width, height, BufferedImage.TYPE_INT_BGR);
	Random r = new Random();
	// 获取图形上下文环境
	Graphics gc = bimg.getGraphics();
	// 设定背景色并进行填充
	gc.setColor(getRandColor(200, 250));
	gc.fillRect(0, 0, width, height);
	// 设置图形上下文环境字体
	gc.setFont(new Font("Times New Roman", Font.PLAIN, 20));
	// 随机产生200条干扰线条,使图像中的认证码不易被其他分析程序探测到
	gc.setColor(getRandColor(160, 200));
	for (int i = 0; i < 200; i++) {
		int x1 = r.nextInt(width);
		int y1 = r.nextInt(height);
		int x2 = r.nextInt(15);
		int y2 = r.nextInt(15);
		gc.drawLine(x1, y1, x1 + x2, y1 + y2);
	}
	// 随机产生100个干扰点,使图像中的验证码不易被其他分析程序探测到
	gc.setColor(getRandColor(120, 240));
	for (int i = 0; i < 100; i++) {
		int x = r.nextInt(width);
		int y = r.nextInt(height);
		gc.drawOval(x, y, 0, 0);
	}

	// 随机产生4个数字的验证码
	String rs = "";
	String rn = "";
	for (int i = 0; i < 4; i++) {
		rn = String.valueOf(r.nextInt(10));
		rs += rn;
		gc.setColor(new Color(20 + r.nextInt(110), 20 + r.nextInt(110), 20 + r.nextInt(110)));
		gc.drawString(rn, 20 * i + 6, 27);
	}

	// 释放图形上下文环境
	gc.dispose();

	request.getSession().setAttribute("rcCaptcha", rs);
	ImageIO.write(bimg, "jpeg", out);
	try {
		out.flush();
	} finally {
		out.close();
	}
}
 
Example 20
Project: openjdk-jdk10   File: PixelTests.java   View Source Code Vote up 4 votes
public static void init() {
    pixelroot = new Group("pixel", "Pixel Access Benchmarks");

    pixeloptroot = new Group(pixelroot, "opts", "Pixel Access Options");
    doRenderTo = new Option.Toggle(pixeloptroot, "renderto",
                                   "Render to Image before test",
                                   Option.Toggle.Off);
    doRenderFrom = new Option.Toggle(pixeloptroot, "renderfrom",
                                     "Render from Image before test",
                                     Option.Toggle.Off);

    // BufferedImage Sources
    bufimgsrcroot = new Group.EnableSet(pixelroot, "src",
                                        "BufferedImage Sources");
    new BufImg(BufferedImage.TYPE_BYTE_BINARY, 1);
    new BufImg(BufferedImage.TYPE_BYTE_BINARY, 2);
    new BufImg(BufferedImage.TYPE_BYTE_BINARY, 4);
    new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
    new BufImg(BufferedImage.TYPE_BYTE_GRAY);
    new BufImg(BufferedImage.TYPE_USHORT_555_RGB);
    new BufImg(BufferedImage.TYPE_USHORT_565_RGB);
    new BufImg(BufferedImage.TYPE_USHORT_GRAY);
    new BufImg(BufferedImage.TYPE_3BYTE_BGR);
    new BufImg(BufferedImage.TYPE_4BYTE_ABGR);
    new BufImg(BufferedImage.TYPE_INT_RGB);
    new BufImg(BufferedImage.TYPE_INT_BGR);
    new BufImg(BufferedImage.TYPE_INT_ARGB);

    // BufferedImage Tests
    bufimgtestroot = new Group(pixelroot, "bimgtests",
                               "BufferedImage Tests");
    new BufImgTest.GetRGB();
    new BufImgTest.SetRGB();

    // Raster Tests
    rastertestroot = new Group(pixelroot, "rastests",
                               "Raster Tests");
    new RasTest.GetDataElements();
    new RasTest.SetDataElements();
    new RasTest.GetPixel();
    new RasTest.SetPixel();

    // DataBuffer Tests
    dbtestroot = new Group(pixelroot, "dbtests",
                           "DataBuffer Tests");
    new DataBufTest.GetElem();
    new DataBufTest.SetElem();
}