public enum

ResourceProto.ImageFormat

extends java.lang.Enum<ResourceProto.ImageFormat>

 java.lang.Object

↳java.lang.Enum<ResourceProto.ImageFormat>

↳androidx.wear.protolayout.proto.ResourceProto.ImageFormat

Overview

 Format describing the contents of an image data byte array.
 
Protobuf enum androidx.wear.protolayout.proto.ImageFormat

Summary

Enum Constants
IMAGE_FORMAT_ARGB_8888
 An image format where each pixel is stored on 4 bytes.
IMAGE_FORMAT_RGB_565
 An image format where each pixel is stored on 2 bytes, with red using 5
 bits, green using 6 bits and blue using 5 bits of precision.
IMAGE_FORMAT_UNDEFINED
 An undefined image format.
UNRECOGNIZED
Fields
public static final intIMAGE_FORMAT_ARGB_8888_VALUE

 An image format where each pixel is stored on 4 bytes.

public static final intIMAGE_FORMAT_RGB_565_VALUE

 An image format where each pixel is stored on 2 bytes, with red using 5
 bits, green using 6 bits and blue using 5 bits of precision.

public static final intIMAGE_FORMAT_UNDEFINED_VALUE

 An undefined image format.

Methods
public static ResourceProto.ImageFormatforNumber(int value)

public final intgetNumber()

public static <any>internalGetValueMap()

public static com.google.protobuf.Internal.EnumVerifierinternalGetVerifier()

public static ResourceProto.ImageFormatvalueOf(int value)

public static ResourceProto.ImageFormatvalueOf(java.lang.String name)

public static ResourceProto.ImageFormatvalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

IMAGE_FORMAT_UNDEFINED

 An undefined image format.
 
IMAGE_FORMAT_UNDEFINED = 0;

IMAGE_FORMAT_RGB_565

 An image format where each pixel is stored on 2 bytes, with red using 5
 bits, green using 6 bits and blue using 5 bits of precision.
 
IMAGE_FORMAT_RGB_565 = 1;

IMAGE_FORMAT_ARGB_8888

 An image format where each pixel is stored on 4 bytes.
 RGB and alpha (for translucency) is stored with 8 bits of precision.
 
IMAGE_FORMAT_ARGB_8888 = 2;

UNRECOGNIZED

Fields

public static final int IMAGE_FORMAT_UNDEFINED_VALUE

 An undefined image format.
 
IMAGE_FORMAT_UNDEFINED = 0;

public static final int IMAGE_FORMAT_RGB_565_VALUE

 An image format where each pixel is stored on 2 bytes, with red using 5
 bits, green using 6 bits and blue using 5 bits of precision.
 
IMAGE_FORMAT_RGB_565 = 1;

public static final int IMAGE_FORMAT_ARGB_8888_VALUE

 An image format where each pixel is stored on 4 bytes.
 RGB and alpha (for translucency) is stored with 8 bits of precision.
 
IMAGE_FORMAT_ARGB_8888 = 2;

Methods

public static ResourceProto.ImageFormat values()

public static ResourceProto.ImageFormat valueOf(java.lang.String name)

public final int getNumber()

public static ResourceProto.ImageFormat valueOf(int value)

Deprecated: Use ResourceProto.ImageFormat.forNumber(int) instead.

Parameters:

value: The number of the enum to look for.

Returns:

The enum associated with the given number.

public static ResourceProto.ImageFormat forNumber(int value)

public static <any> internalGetValueMap()

public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()