if (bti == null) {
VideoFormat vf = (VideoFormat) cbuffer.getFormat();
bti = new BufferToImage(vf);
}
if (bti != null && component != null) {
Image im = bti.createImage(cbuffer);
Graphics g = component.getGraphics();
Dimension size = component.getSize();
if (g != null)
g.drawImage(im, 0, 0, component);
}