2 * PROJECT: NyARToolkit
\r
3 * --------------------------------------------------------------------------------
\r
4 * The NyARToolkit is Java version ARToolkit class library.
\r
5 * Copyright (C)2008 R.Iizuka
\r
7 * This program is free software; you can redistribute it and/or
\r
8 * modify it under the terms of the GNU General Public License
\r
9 * as published by the Free Software Foundation; either version 2
\r
10 * of the License, or (at your option) any later version.
\r
12 * This program is distributed in the hope that it will be useful,
\r
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
15 * GNU General Public License for more details.
\r
17 * You should have received a copy of the GNU General Public License
\r
18 * along with this framework; if not, write to the Free Software
\r
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
21 * For further information please contact.
\r
22 * http://nyatla.jp/nyatoolkit/
\r
23 * <airmail(at)ebony.plala.or.jp>
\r
26 package jp.nyatla.nyartoolkit.core.raster.rgb;
\r
29 import jp.nyatla.nyartoolkit.core.raster.TNyRasterType;
\r
30 import jp.nyatla.nyartoolkit.core.rasterreader.INyARRgbPixelReader;
\r
37 public class NyARRgbRaster_Blank extends NyARRgbRaster_BasicClass
\r
39 private class PixelReader implements INyARRgbPixelReader{
\r
40 public void getPixel(int i_x,int i_y,int[] o_rgb)
\r
47 public void getPixelSet(int[] i_x,int i_y[],int i_num,int[] o_rgb)
\r
49 for(int i=i_num-1;i>=0;i--){
\r
56 private INyARRgbPixelReader _reader;
\r
57 public NyARRgbRaster_Blank(int i_width,int i_height)
\r
59 this._size.w=i_width;
\r
60 this._size.h=i_height;
\r
61 this._reader=new PixelReader();
\r
63 public int getBufferType()
\r
65 return TNyRasterType.BUFFERFORMAT_NULL_ALLZERO;
\r
67 public byte[] getBufferObject()
\r
71 public INyARRgbPixelReader getRgbPixelReader()
\r
73 return this._reader;
\r