Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 1

Bitmap.CompressFormat

public static final enum Bitmap.CompressFormat
extends Enum<Bitmap.CompressFormat>

java.lang.Object
   ↳ java.lang.Enum<android.graphics.Bitmap.CompressFormat>
     ↳ android.graphics.Bitmap.CompressFormat


Specifies the known formats a bitmap can be compressed into

Summary

Enum values

Bitmap.CompressFormat  JPEG

 

Bitmap.CompressFormat  PNG

 

Bitmap.CompressFormat  WEBP

 

Public methods

static Bitmap.CompressFormat valueOf(String name)
static final CompressFormat[] values()

Inherited methods

Enum values

JPEG

added in API level 1
public static final Bitmap.CompressFormat JPEG

PNG

added in API level 1
public static final Bitmap.CompressFormat PNG

WEBP

added in API level 14
public static final Bitmap.CompressFormat WEBP

Public methods

valueOf

added in API level 1
public static Bitmap.CompressFormat valueOf (String name)

Parameters
name String

Returns
Bitmap.CompressFormat

values

added in API level 1
public static final CompressFormat[] values ()

Returns
CompressFormat[]