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