|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.imageio.ImageTypeSpecifier
public class ImageTypeSpecifier
이미지의 형식, 특히 SampleModel
와 ColorModel
를, 편리한 방법으로 지정할 수 있도록(듯이) 하는 클래스입니다.
필드의 개요 | |
---|---|
protected ColorModel |
colorModel
prototype로서 사용하는 ColorModel 입니다. |
protected SampleModel |
sampleModel
prototype로서 사용하는 SampleModel 입니다. |
생성자 의 개요 | |
---|---|
ImageTypeSpecifier (ColorModel colorModel,
SampleModel sampleModel)
ColorModel 과 SampleModel 로부터 직접 ImageTypeSpecifier 를 구축합니다. |
|
ImageTypeSpecifier (RenderedImage image)
RenderedImage 로부터 ImageTypeSpecifier 를 구축합니다. |
메소드의 개요 | |
---|---|
static ImageTypeSpecifier |
createBanded (ColorSpace colorSpace,
int[] bankIndices,
int[] bandOffsets,
int dataType,
boolean hasAlpha,
boolean isAlphaPremultiplied)
ComponentColorModel 와 BandedSampleModel 를 사용하는, 밴드 된 이미지 형식의 지시자를 돌려주어, 각 채널을 다른 배열에 포함합니다. |
BufferedImage |
createBufferedImage (int width,
int height)
이 객체에 받아들여진 지정에 따라, 주어진 폭과 높이의 BufferedImage 를 작성합니다. |
static ImageTypeSpecifier |
createFromBufferedImageType (int bufferedImageType)
표준 BufferedImage 형식의 1 개 (TYPE_CUSTOM 이외)를 encode 하는 ImageTypeSpecifier 를 돌려줍니다. |
static ImageTypeSpecifier |
createFromRenderedImage (RenderedImage image)
RenderedImage (BufferedImage 의 경우도 있다)의 배치를 encode 하는 ImageTypeSpecifier 를 돌려줍니다. |
static ImageTypeSpecifier |
createGrayscale (int bits,
int dataType,
boolean isSigned)
주어진 비트 심도의 픽셀을, 지정된 데이터형의 배열 요소에 팩 하는, 그레이 스케일 이미지 형식의 지시자를 돌려줍니다. |
static ImageTypeSpecifier |
createGrayscale (int bits,
int dataType,
boolean isSigned,
boolean isAlphaPremultiplied)
주어진 비트 심도의 픽셀을, 지정된 데이터형의 배열 요소에 팩 하는, 그레이 스케일과 플러스 알파의 이미지 형식의 지시자를 돌려줍니다. |
static ImageTypeSpecifier |
createIndexed (byte[] redLUT,
byte[] greenLUT,
byte[] blueLUT,
byte[] alphaLUT,
int bits,
int dataType)
주어진 비트 심도의 인덱스치를, 지정된 데이터형의 배열 요소에 팩 하는, 인덱스 된 칼라 이미지 형식의 지시자를 돌려줍니다. |
static ImageTypeSpecifier |
createInterleaved (ColorSpace colorSpace,
int[] bandOffsets,
int dataType,
boolean hasAlpha,
boolean isAlphaPremultiplied)
ComponentColorModel 와 PixelInterleavedSampleModel 를 사용하는, 인터리브 된 이미지 형식의 지시자를 돌려주어, 각 픽셀 원가요소를 다른 byte, short, 또는 int 에 포함합니다. |
static ImageTypeSpecifier |
createPacked (ColorSpace colorSpace,
int redMask,
int greenMask,
int blueMask,
int alphaMask,
int transferType,
boolean isAlphaPremultiplied)
DirectColorModel 와 팩 된 SampleModel 를 사용하는, 팩 된 이미지 형식의 지시자를 돌려주어, 1 byte, short, 또는 int 에 팩 된 각 픽셀을 포함합니다. |
boolean |
equals (Object o)
주어진 Object 가 ImageTypeSpecifier 로, 이 객체와 동일한 SampleModel 와 ColorModel 를 가지는 경우,true 를 돌려줍니다. |
int |
getBitsPerBand (int band)
주어진 밴드의 샘플을 나타내기 위해서(때문에) 사용되는 비트수를 돌려줍니다. |
int |
getBufferedImageType ()
BufferedImage 로부터, 이미지 형식을 기술하는 열거된 정수치의 1 개를 포함한 int 를 돌려줍니다. |
ColorModel |
getColorModel ()
객체로 지정된 ColorModel 를 돌려줍니다. |
int |
getNumBands ()
객체로 지정된 밴드의 수를 돌려줍니다. |
int |
getNumComponents ()
객체로 지정된 색성분의 수를 돌려줍니다. |
SampleModel |
getSampleModel ()
이 객체내에 캡슐화된 설정에 근거하는 SampleModel 를 돌려줍니다. |
SampleModel |
getSampleModel (int width,
int height)
이 객체내에 캡슐화된 설정에 근거하는 SampleModel 를 돌려줍니다. |
int |
hashCode ()
이 ImageTypeSpecifier 의 해시 코드를 돌려줍니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , finalize , getClass , notify , notifyAll , toString , wait , wait , wait |
필드의 상세 |
---|
protected ColorModel colorModel
ColorModel
입니다.
protected SampleModel sampleModel
SampleModel
입니다.
생성자 의 상세 |
---|
public ImageTypeSpecifier(ColorModel colorModel, SampleModel sampleModel)
ColorModel
과 SampleModel
로부터 직접 ImageTypeSpecifier
를 구축합니다. 호환성이 있는 파라미터를 제공하는 것은, 호출측의 역할이 됩니다.
colorModel
- ColorModel
. sampleModel
- SampleModel
IllegalArgumentException
- 몇개의 파라미터가
null
의 경우
IllegalArgumentException
- sampleModel
가
colorModel
와 호환성이 없는 경우public ImageTypeSpecifier(RenderedImage image)
RenderedImage
로부터 ImageTypeSpecifier
를 구축합니다. BufferedImage
를 사용하고 있는 경우, 보다 정확한 결과를 얻기 위해서(때문에), 팩토리 메소드의 1 개인 createFromRenderedImage
또는 createFromBufferedImageType
를 대신에 사용할 필요가 있습니다.
image
- RenderedImage
IllegalArgumentException
- 인수가
null
의 경우메소드의 상세 |
---|
public static ImageTypeSpecifier createPacked(ColorSpace colorSpace, int redMask, int greenMask, int blueMask, int alphaMask, int transferType, boolean isAlphaPremultiplied)
DirectColorModel
와 팩 된 SampleModel
를 사용하는, 팩 된 이미지 형식의 지시자를 돌려주어, 1 byte, short, 또는 int 에 팩 된 각 픽셀을 포함합니다.
colorSpace
- 희망하는 ColorSpace
redMask
- 빨강의 채널의 위치가 나타났다
인접하는 마스크greenMask
- 초록의 채널의 위치가 나타났다
인접하는 마스크blueMask
- 파랑의 채널의 위치가 나타났다
인접하는 마스크alphaMask
- 알파 채널의 위치가 나타났다
인접하는 마스크transferType
- 희망하는 SampleModel
전송 타입isAlphaPremultiplied
- 배색 채널이 알파 채널로
배가 되는 경우,true
ImageTypeSpecifier
IllegalArgumentException
- colorSpace
가
null
의 경우
IllegalArgumentException
- colorSpace
가
타입 TYPE_RGB
가 아닌 경우
IllegalArgumentException
- 마스크에 1 비트나
설정되어 있지 않은 경우
IllegalArgumentException
- transferType
하지만,
DataBuffer.TYPE_BYTE
,
DataBuffer.TYPE_USHORT
,
DataBuffer.TYPE_INT
의 머지않아도 아닌 경우public static ImageTypeSpecifier createInterleaved(ColorSpace colorSpace, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied)
ComponentColorModel
와 PixelInterleavedSampleModel
를 사용하는, 인터리브 된 이미지 형식의 지시자를 돌려주어, 각 픽셀 원가요소를 다른 byte, short, 또는 int 에 포함합니다.
colorSpace
- 희망하는 ColorSpace
bandOffsets
- 각 밴드의 오프셋(offset)를 나타낸다
int
의 배열dataType
- 희망하는 데이터형을,
DataBuffer
클래스로부터의 열거법의 1 개로 나타낸 것hasAlpha
- 알파 채널을 희망하는 경우,true
isAlphaPremultiplied
- 배색 채널이 알파 채널로
배가 되는 경우,true
ImageTypeSpecifier
IllegalArgumentException
- colorSpace
가
null
의 경우
IllegalArgumentException
- bandOffsets
가
null
의 경우
IllegalArgumentException
- dataType
가
정당한 DataBuffer.TYPE_*
정수의 1 개가 아닌 경우
IllegalArgumentException
- bandOffsets.length
가
칼라 영역 성분의 수로 동일하지 않은 경우,
hasAlpha
가
true
때 + 1public static ImageTypeSpecifier createBanded(ColorSpace colorSpace, int[] bankIndices, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied)
ComponentColorModel
와 BandedSampleModel
를 사용하는, 밴드 된 이미지 형식의 지시자를 돌려주어, 각 채널을 다른 배열에 포함합니다.
colorSpace
- 희망하는 ColorSpace
bankIndices
- 각 밴드를 포함한다
뱅크를 나타내는 int
의 배열bandOffsets
- 뱅크내의 각 밴드의
개시 오프셋(offset)를 나타내는 int
의 배열dataType
- 희망하는 데이터형을,
DataBuffer
클래스로부터의 열거법의 1 개로 나타낸 것hasAlpha
- 알파 채널을 희망하는 경우,true
isAlphaPremultiplied
- 배색 채널이 알파 채널로
배가 되는 경우,true
ImageTypeSpecifier
IllegalArgumentException
- colorSpace
가
null
의 경우
IllegalArgumentException
- bankIndices
가
null
의 경우
IllegalArgumentException
- bandOffsets
가
null
의 경우
IllegalArgumentException
- bankIndices
와 bandOffsets
의
길이가 다른 경우
IllegalArgumentException
- bandOffsets.length
가
칼라 영역 성분의 수로 동일하지 않은 경우,
hasAlpha
가
true
때 + 1
IllegalArgumentException
- dataType
가
정당한 DataBuffer.TYPE_*
정수의 1 개가 아닌 경우public static ImageTypeSpecifier createGrayscale(int bits, int dataType, boolean isSigned)
bits
- 회색 표시의 값 마다의 비트수 (1, 2, 4, 8, 또는 16)dataType
- 희망하는 데이터형을,
DataBuffer
클래스로부터의 열거법의 1 개로 나타낸 것isSigned
- 0 보다 작은 값이 표시되는 경우,
true
ImageTypeSpecifier
IllegalArgumentException
- bits
가 1, 2, 4, 8,
또는 16 의 머지않아도 아닌 경우
IllegalArgumentException
- dataType
이,
DataBuffer.TYPE_BYTE
,
DataBuffer.TYPE_SHORT
,
DataBuffer.TYPE_USHORT
의 머지않아도 아닌 경우
IllegalArgumentException
- bits
가,
주어지는 dataType
의 비트 사이즈보다 큰 경우public static ImageTypeSpecifier createGrayscale(int bits, int dataType, boolean isSigned, boolean isAlphaPremultiplied)
bits
- 회색 표시의 값 마다의 비트수 (1, 2, 4, 8, 또는 16)dataType
- 희망하는 데이터형을,
DataBuffer
클래스로부터의 열거법의 1 개로 나타낸 것isSigned
- 0 보다 작은 값이 표시되는 경우,
true
isAlphaPremultiplied
- 휘도 채널이 알파 채널로
배가 되는 경우,true
ImageTypeSpecifier
IllegalArgumentException
- bits
가 1, 2, 4, 8,
또는 16 의 머지않아도 아닌 경우
IllegalArgumentException
- dataType
이,
DataBuffer.TYPE_BYTE
,
DataBuffer.TYPE_SHORT
,
DataBuffer.TYPE_USHORT
의 머지않아도 아닌 경우
IllegalArgumentException
- bits
가,
주어지는 dataType
의 비트 사이즈보다 큰 경우public static ImageTypeSpecifier createIndexed(byte[] redLUT, byte[] greenLUT, byte[] blueLUT, byte[] alphaLUT, int bits, int dataType)
redLUT
- 각 인덱스에 대한 빨강의 값을
포함한 byte
의 배열greenLUT
- 각 인덱스에 대한 * 초록의 값을
포함한 byte
의 배열blueLUT
- 각 인덱스에 대한 파랑의 값을
포함한 byte
의 배열alphaLUT
- 각 인덱스에 대한 알파치
또는 완전하게 불투명한 LUT 를 작성하기 위한 null
를 포함한 byte
의 배열bits
- 각 인덱스의 비트수dataType
- 망 하는 출력 형식을,
DataBuffer
클래스로부터의 열거법의 1 개로 나타낸 것
ImageTypeSpecifier
IllegalArgumentException
- redLUT
가
null
의 경우
IllegalArgumentException
- greenLUT
가
null
의 경우
IllegalArgumentException
- blueLUT
가
null
의 경우
IllegalArgumentException
- bits
가 1, 2, 4, 8,
또는 16 의 머지않아도 아닌 경우
IllegalArgumentException
- null
이외의
LUT 파라미터가,
엄밀하게 1 << bits
의 길이를 가지지 않는 경우
IllegalArgumentException
- dataType
가,
DataBuffer.TYPE_BYTE
,
DataBuffer.TYPE_SHORT
,
DataBuffer.TYPE_USHORT
,
DataBuffer.TYPE_INT
의 머지않아도 아닌 경우
IllegalArgumentException
- bits
가,
주어지는 dataType
의 비트 사이즈보다 큰 경우public static ImageTypeSpecifier createFromBufferedImageType(int bufferedImageType)
BufferedImage
형식의 1 개 (TYPE_CUSTOM
이외)를 encode 하는 ImageTypeSpecifier
를 돌려줍니다.
bufferedImageType
- 표준 BufferedImage
형식의
1 개(살)을 나타내는 int
ImageTypeSpecifier
IllegalArgumentException
- bufferedImageType
가 표준 형식의 머지않아도 아닌,
또는 TYPE_CUSTOM
와
동일한 경우BufferedImage
,
BufferedImage.TYPE_INT_RGB
,
BufferedImage.TYPE_INT_ARGB
,
BufferedImage.TYPE_INT_ARGB_PRE
,
BufferedImage.TYPE_INT_BGR
,
BufferedImage.TYPE_3BYTE_BGR
,
BufferedImage.TYPE_4BYTE_ABGR
,
BufferedImage.TYPE_4BYTE_ABGR_PRE
,
BufferedImage.TYPE_USHORT_565_RGB
,
BufferedImage.TYPE_USHORT_555_RGB
,
BufferedImage.TYPE_BYTE_GRAY
,
BufferedImage.TYPE_USHORT_GRAY
,
BufferedImage.TYPE_BYTE_BINARY
,
BufferedImage.TYPE_BYTE_INDEXED
public static ImageTypeSpecifier createFromRenderedImage(RenderedImage image)
RenderedImage
(BufferedImage
의 경우도 있다)의 배치를 encode 하는 ImageTypeSpecifier
를 돌려줍니다.
image
- RenderedImage
ImageTypeSpecifier
IllegalArgumentException
- image
가
null
의 경우public int getBufferedImageType()
BufferedImage
로부터, 이미지 형식을 기술하는 열거된 정수치의 1 개를 포함한 int 를 돌려줍니다.
BufferedImage
형식을
나타내는 int
BufferedImage
,
BufferedImage.TYPE_CUSTOM
,
BufferedImage.TYPE_INT_RGB
,
BufferedImage.TYPE_INT_ARGB
,
BufferedImage.TYPE_INT_ARGB_PRE
,
BufferedImage.TYPE_INT_BGR
,
BufferedImage.TYPE_3BYTE_BGR
,
BufferedImage.TYPE_4BYTE_ABGR
,
BufferedImage.TYPE_4BYTE_ABGR_PRE
,
BufferedImage.TYPE_USHORT_565_RGB
,
BufferedImage.TYPE_USHORT_555_RGB
,
BufferedImage.TYPE_BYTE_GRAY
,
BufferedImage.TYPE_USHORT_GRAY
,
BufferedImage.TYPE_BYTE_BINARY
,
BufferedImage.TYPE_BYTE_INDEXED
public int getNumComponents()
ColorModel.getNumComponents
가 돌려주는 값과 같습니다.
public int getNumBands()
SampleModel.getNumBands
가 돌려주는 값과 같습니다.
public int getBitsPerBand(int band)
band
- 조회되는 밴드의 인덱스를 int 로
나타낸 것
IllegalArgumentException
- band
가
부 또는 최대의 밴드 인덱스보다 큰 경우public SampleModel getSampleModel()
SampleModel
를 돌려줍니다. SampleModel
의 폭과 높이는 임의의 값으로 설정됩니다.
SampleModel
public SampleModel getSampleModel(int width, int height)
SampleModel
를 돌려줍니다. SampleModel
의 폭과 높이는 제공된 값으로 설정됩니다.
width
- 반환된 SampleModel
의 희망하는 폭height
- 반환된 SampleModel
의
희망하는 높이
SampleModel
IllegalArgumentException
- width
또는
height
가 부 또는 0 의 경우
IllegalArgumentException
- width
와 height
의 적이
Integer.MAX_VALUE
보다
큰 경우
public ColorModel getColorModel()
ColorModel
를 돌려줍니다.
ColorModel
. public BufferedImage createBufferedImage(int width, int height)
BufferedImage
를 작성합니다.
width
- 반환된 BufferedImage
의
희망하는 폭height
- 반환된 BufferedImage
의
희망하는 높이
BufferedImage
IllegalArgumentException
- width
또는
height
가 부 또는 0 의 경우
IllegalArgumentException
- width
와 height
의 적이
Integer.MAX_VALUE
보다
큰 경우,
또는 이미지를 포함하기 위해서 필요한 배열 요소의 수가
Integer.MAX_VALUE
보다 큰 경우public boolean equals(Object o)
Object
가 ImageTypeSpecifier
로, 이 객체와 동일한 SampleModel
와 ColorModel
를 가지는 경우,true
를 돌려줍니다.
Object
내의 equals
o
- 동일한지 어떤지를 비교하는 대상의 Object
ImageTypeSpecifier
와 동일한 경우,
true
Object.hashCode()
,
Hashtable
public int hashCode()
Object
내의 hashCode
Object.equals(java.lang.Object)
,
Hashtable
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.