static Bitmap | createBitmap(Bitmap src)
Returns an immutable bitmap from the source bitmap.
|
static Bitmap | createBitmap(int[] colors, int width, int height, Bitmap.Config config)
Returns a immutable bitmap with the specified width and height, with each pixel value set to the corresponding value in the colors array.
|
static Bitmap | createBitmap(int[] colors, int offset, int stride, int width, int height, Bitmap.Config config)
Returns a immutable bitmap with the specified width and height, with each pixel value set to the corresponding value in the colors array.
|
static Bitmap | createBitmap(Bitmap source, int x, int y, int width, int height, Matrix m, boolean filter)
Returns an immutable bitmap from subset of the source bitmap, transformed by the optional matrix.
|
static Bitmap | createBitmap(int width, int height, Bitmap.Config config)
Returns a mutable bitmap with the specified width and height.
|
static Bitmap | createBitmap(Bitmap source, int x, int y, int width, int height)
Returns an immutable bitmap from the specified subset of the source bitmap.
|
Bitmap.createBitmap(int width, int height, Bitmap.Config config)可创建可以修改图片数据的图片。
通过:
void | setPixel(int x, int y, int color)
Write the specified
Color into the bitmap (assuming it is mutable) at the x,y coordinate.
|
void | setPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height)
Replace pixels in the bitmap with the colors in the array.
|
可以进行图片的修改。