Format Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates values returned by several types and taken as a parameter of several types.
public enum Format
type Format =
- Inheritance
-
Format
Fields
| Name | Value | Description |
|---|---|---|
| Translucent | -3 | System chooses a format that supports translucency (many alpha bits) Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Transparent | -2 | System chooses a format that supports transparency (at least 1 alpha bit) Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Opaque | -1 | System chooses an opaque format (no alpha bits required) Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Unknown | 0 | The unknown-format identifier, value zero, rather than a concrete pixel layout. |
| Rgba8888 | 1 | An alpha-capable RGBA pixel-format identifier using thirty-two bits per pixel. |
| Rgbx8888 | 2 | An RGBX pixel-format identifier using thirty-two bits per pixel without alpha. |
| Rgb888 | 3 | An RGB pixel-format identifier using twenty-four bits per pixel without alpha. |
| Rgb565 | 4 | An RGB pixel-format identifier using sixteen bits per pixel without alpha. |
| Rgba5551 | 6 | A legacy alpha-capable RGBA pixel-format identifier using sixteen bits per pixel. |
| Rgba4444 | 7 | A legacy alpha-capable RGBA pixel-format identifier using sixteen bits per pixel. |
| A8 | 8 | A legacy alpha pixel-format identifier using eight bits per pixel. |
| L8 | 9 | A legacy luminance pixel-format identifier using eight bits per pixel without alpha. |
| La88 | 10 | A legacy luminance-and-alpha pixel-format identifier using sixteen bits per pixel. |
| Rgb332 | 11 | A legacy RGB pixel-format identifier using eight bits per pixel without alpha. |
| Ycbcr422Sp | 16 | This constant was deprecated in API level 15. use ImageFormat.NV16 instead. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Ycbcr420Sp | 17 | This constant was deprecated in API level 15. use ImageFormat.NV21 instead. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Ycbcr422I | 20 | This constant was deprecated in API level 15. use ImageFormat.YUY2 instead. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| RgbaF16 | 22 | An alpha-capable RGBA pixel-format identifier using sixty-four bits per pixel. |
| Rgba1010102 | 43 | An alpha-capable RGBA pixel-format identifier using thirty-two bits per pixel. |
| Jpeg | 256 | This constant was deprecated in API level 15. use ImageFormat.JPEG instead. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.