RawImage
public
final
class
RawImage
extends Object
| java.lang.Object | |
| ↳ | com.android.ddmlib.RawImage |
Dane reprezentujące obraz pobrany z bufora ramki urządzenia.
Podsumowanie
Stałe | |
|---|---|
int |
COLOR_SPACE_DISPLAY_P3
|
int |
COLOR_SPACE_SRGB
|
int |
COLOR_SPACE_UNKNOWN
|
Fieldsem | |
|---|---|
public
int |
alpha_length
|
public
int |
alpha_offset
|
public
int |
blue_length
|
public
int |
blue_offset
|
public
int |
bpp
|
public
int |
colorSpace
|
public
byte[] |
data
|
public
int |
green_length
|
public
int |
green_offset
|
public
int |
height
|
public
int |
red_length
|
public
int |
red_offset
|
public
int |
size
|
public
int |
version
|
public
int |
width
|
Publiczne konstruktory | |
|---|---|
RawImage()
|
|
Metody publiczne | |
|---|---|
BufferedImage
|
asBufferedImage()
|
int
|
getARGB(int index)
Zwraca liczbę całkowitą ARGB piksela w pozycji index w obiekcie |
int
|
getBlueMask()
Zwraca wartość maski dla koloru niebieskiego. |
int
|
getGreenMask()
Zwraca wartość maski dla koloru zielonego. |
static
int
|
getHeaderSize(int version)
Zwraca rozmiar nagłówka dla określonej wersji protokołu adb bufora ramki. |
String
|
getProfileName()
|
int
|
getRedMask()
Zwraca wartość maski dla koloru czerwonego. |
RawImage
|
getRotated()
Zwraca obróconą wersję obrazu. Obraz jest obracany w lewo. |
boolean
|
readHeader(int version, ByteBuffer buf)
Odczytuje nagłówek RawImage z |
Stałe
COLOR_SPACE_DISPLAY_P3
public static final int COLOR_SPACE_DISPLAY_P3
Wartość stała: 2 (0x00000002)
COLOR_SPACE_SRGB
public static final int COLOR_SPACE_SRGB
Wartość stała: 1 (0x00000001)
COLOR_SPACE_UNKNOWN
public static final int COLOR_SPACE_UNKNOWN
Constant Value: 0 (0x00000000)
Fieldsem
alpha_length
public int alpha_length
alpha_offset
public int alpha_offset
blue_length
public int blue_length
blue_offset
public int blue_offset
bpp
public int bpp
colorSpace
public int colorSpace
dane
public byte[] data
green_length
public int green_length
green_offset
public int green_offset
wzrost
public int height
red_length
public int red_length
red_offset
public int red_offset
rozmiar
public int size
Wersja
public int version
width
public int width
Publiczne konstruktory
RawImage
public RawImage ()
Metody publiczne
asBufferedImage
public BufferedImage asBufferedImage ()
| Zwroty | |
|---|---|
BufferedImage |
|
getARGB
public int getARGB (int index)
Zwraca wartość całkowitą ARGB piksela w punkcie index w obszarze data.
| Parametry | |
|---|---|
index |
int |
| Zwroty | |
|---|---|
int |
|
getBlueMask
public int getBlueMask ()
Zwraca wartość maski dla koloru niebieskiego.
Ta wartość jest zgodna z org.eclipse.swt.graphics.PaletteData
| Zwroty | |
|---|---|
int |
|
getGreenMask
public int getGreenMask ()
Zwraca wartość maski dla koloru zielonego.
Ta wartość jest zgodna z org.eclipse.swt.graphics.PaletteData
| Zwroty | |
|---|---|
int |
|
getHeaderSize
public static int getHeaderSize (int version)
Zwraca rozmiar nagłówka dla określonej wersji protokołu adb bufora ramki.
| Parametry | |
|---|---|
version |
int: wersja protokołu. |
| Zwroty | |
|---|---|
int |
liczba liczb całkowitych, z których składa się nagłówek. |
getProfileName
public String getProfileName ()
| Zwroty | |
|---|---|
String |
|
getRedMask
public int getRedMask ()
Zwraca wartość maski dla koloru czerwonego.
Ta wartość jest zgodna z org.eclipse.swt.graphics.PaletteData
| Zwroty | |
|---|---|
int |
|
getRotated
public RawImage getRotated ()
Zwraca obróconą wersję obrazu. Obraz jest obracany w lewo.
| Zwroty | |
|---|---|
RawImage |
|
readHeader
public boolean readHeader (int version,
ByteBuffer buf)Odczytuje nagłówek RawImage z ERROR(/ByteBuffer).
Sposób przesyłania danych przez adb jest zdefiniowany w pliku system/core/adb/framebuffer_service.c.
| Parametry | |
|---|---|
version |
int: wersja protokołu. |
buf |
ByteBuffer: bufor, z którego mają być odczytywane dane. |
| Zwroty | |
|---|---|
boolean |
wartość true, jeśli operacja się powiodła |