Class PixelFormat
- java.lang.Object
-
- com.shinyhut.vernacular.protocol.messages.PixelFormat
-
-
Constructor Summary
Constructors Constructor Description PixelFormat(int bitsPerPixel, int depth, boolean bigEndian, boolean trueColor, int redMax, int greenMax, int blueMax, int redShift, int greenShift, int blueShift)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PixelFormatdecode(InputStream in)voidencode(OutputStream out)intgetBitsPerPixel()intgetBlueMax()intgetBlueShift()intgetBytesPerPixel()intgetDepth()intgetGreenMax()intgetGreenShift()intgetRedMax()intgetRedShift()booleanisBigEndian()booleanisTrueColor()
-
-
-
Method Detail
-
getBitsPerPixel
public int getBitsPerPixel()
-
getBytesPerPixel
public int getBytesPerPixel()
-
getDepth
public int getDepth()
-
isBigEndian
public boolean isBigEndian()
-
isTrueColor
public boolean isTrueColor()
-
getRedMax
public int getRedMax()
-
getGreenMax
public int getGreenMax()
-
getBlueMax
public int getBlueMax()
-
getRedShift
public int getRedShift()
-
getGreenShift
public int getGreenShift()
-
getBlueShift
public int getBlueShift()
-
encode
public void encode(OutputStream out) throws IOException
- Specified by:
encodein interfaceEncodable- Throws:
IOException
-
decode
public static PixelFormat decode(InputStream in) throws IOException
- Throws:
IOException
-
-