Most visited

Recently visited

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


指定位图可以压缩到的已知格式

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

From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum values

JPEG

Added in API level 1
Bitmap.CompressFormat JPEG

WEBP

Added in API level 14
Bitmap.CompressFormat WEBP

Public methods

valueOf

Added in API level 1
Bitmap.CompressFormat valueOf (String name)

Parameters
name String
Returns
Bitmap.CompressFormat

values

Added in API level 1
CompressFormat[] values ()

Returns
CompressFormat[]

Hooray!