| 限定符和类型 | 字段 | 说明 |
|---|---|---|
AlphaType |
alphaType |
Indicates the expected alpha type of the pixel map to be created.
|
boolean |
editable |
Specifies whether pixel values of the pixel map to be created can be edited.
|
PixelFormat |
pixelFormat |
Indicates the expected format of the pixel map to be created.
|
boolean |
releaseSource |
Specifies whether the source pixel map will be automatically released after a new one is created based on the
source one.
|
ScaleMode |
scaleMode |
Indicates the scaling effect used when the aspect ratio of the original image is different from that of the
target image.
|
Size |
size |
Indicates the expected size of the pixel map to be created.
|
boolean |
useSourceIfMatch |
Specifies whether the source pixel map will be directly returned as a new one when the source one matches the
initialization options for creating the new one.
|
| 构造器 | 说明 |
|---|---|
InitializationOptions() |
public AlphaType alphaType
AlphaType#UNKNOWN: AlphaType#PREMUL (for the alpha channel is
included in the pixel format) or AlphaType#OPAQUE (for the alpha channel not included in the pixel
format) will be used for the creation.public boolean editable
true means that
the values can be edited, and false means the opposite. The default value is false.public PixelFormat pixelFormat
PixelFormat#UNKNOWN:
PixelFormat#ARGB_8888 will be used.public boolean releaseSource
true means that the source one will be released except that it is directly returned
as the new pixel map, and false means that the source one will not be released.public ScaleMode scaleMode
ScaleMode#FIT_TARGET_SIZE.public Size size
null and there is a
source pixel map, the size of the source pixel map will be used for the creation.public boolean useSourceIfMatch
true means that the source pixel map will be
returned, and false means the opposite. The default value is false.