Serializable
, Comparable<BitsPerSample>
public enum BitsPerSample extends Enum<BitsPerSample>
BitsPerSample
enumeration defines some common bits/sample per
channel constants.Enum Constant | Description |
---|---|
HIGH_RES |
High resolution of 16 bits/sample and channel.
|
LOW_RES |
Low resolution of 8 bits/sample and channel.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getBitCount() |
Returns the bits/sample per channel.
|
int |
getByteCount() |
Returns the bytes/sample per channel.
|
static BitsPerSample |
getHigestResolution() |
Retrieves the lowest bits/sample resolution.
|
static BitsPerSample |
getLowestResolution() |
Retrieves the lowest bits/sample resolution.
|
BitsPerSample |
getNextHigherResolution() |
Retrieves the next higher bits/sample or null if it is already the
highest bits/sample.
|
BitsPerSample |
getPreviousLowerResolution() |
Retrieves the previous lower bits/sample or null if it is already the
lowest bits/sample.
|
static BitsPerSample |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static BitsPerSample[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BitsPerSample LOW_RES
public static final BitsPerSample HIGH_RES
public static BitsPerSample[] values()
for (BitsPerSample c : BitsPerSample.values()) System.out.println(c);
public static BitsPerSample valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getBitCount()
BitsPerSample
.public int getByteCount()
BitsPerSample
.public static BitsPerSample getLowestResolution()
public static BitsPerSample getHigestResolution()
public BitsPerSample getNextHigherResolution()
public BitsPerSample getPreviousLowerResolution()
Copyright © 2021. All rights reserved.