File: MemoryRGB48Image.java

package info (click to toggle)
java-imaging-utilities 0.14.2%2B3-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,304 kB
  • ctags: 3,737
  • sloc: java: 31,190; sh: 238; xml: 30; makefile: 19
file content (41 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * MemoryRGB48Image
 *
 * Copyright (c) 2003 Marco Schmidt.
 * All rights reserved.
 */

package net.sourceforge.jiu.data;

import net.sourceforge.jiu.data.MemoryShortChannelImage;
import net.sourceforge.jiu.data.RGB48Image;

/**
 * A class to store 48 bit RGB truecolor images in memory.
 * @author Marco Schmidt
 * @since 0.12.0
 * @see RGB24Image
 */
public class MemoryRGB48Image extends MemoryShortChannelImage implements RGB48Image
{
	/**
	 * Creates a new object of this class, with width and height as
	 * specified by the arguments.
	 * @param width the horizontal resolution of the new image in pixels
	 * @param height the vertical resolution of the new image in pixels
	 */
	public MemoryRGB48Image(int width, int height)
	{
		super(3, width, height);
	}

	public PixelImage createCompatibleImage(int width, int height)
	{
		return new MemoryRGB48Image(width, height);
	}

	public Class getImageType()
	{
		return RGB48Image.class;
	}
}