001 /* 002 * MemoryRGB24Image 003 * 004 * Copyright (c) 2002, 2003 Marco Schmidt. 005 * All rights reserved. 006 */ 007 008 package net.sourceforge.jiu.data; 009 010 import net.sourceforge.jiu.data.MemoryByteChannelImage; 011 import net.sourceforge.jiu.data.RGB24Image; 012 013 /** 014 * A class to store 24 bit RGB truecolor images in memory. 015 * @author Marco Schmidt 016 * @see RGB24Image 017 */ 018 public class MemoryRGB24Image extends MemoryByteChannelImage implements RGB24Image 019 { 020 /** 021 * Creates a new object of this class, with width and height as 022 * specified by the arguments. 023 * @param width the horizontal resolution of the new image in pixels 024 * @param height the vertical resolution of the new image in pixels 025 */ 026 public MemoryRGB24Image(int width, int height) 027 { 028 super(3, width, height); 029 } 030 031 public PixelImage createCompatibleImage(int width, int height) 032 { 033 return new MemoryRGB24Image(width, height); 034 } 035 036 public Class getImageType() 037 { 038 return RGB24Image.class; 039 } 040 }