Bitmap.CreateBitmap Method
Definition
Assembly:Mono.Android.dll
In this article
Overloads
Returns a immutable bitmap with the specified width and height, with each
pixel value set to the corresponding value in the colors array.
Returns an immutable bitmap from subset of the source bitmap,
transformed by the optional matrix.
Returns a immutable bitmap with the specified width and height, with each
pixel value set to the corresponding value in the colors array.
Returns a immutable bitmap with the specified width and height, with each
pixel value set to the corresponding value in the colors array.
Returns an immutable bitmap from the specified subset of the source
bitmap.
Returns a immutable bitmap with the specified width and height, with each
pixel value set to the corresponding value in the colors array.
Returns a mutable bitmap with the specified width and height.
Returns a mutable bitmap with the specified width and height.
Returns an immutable bitmap from the source bitmap.
CreateBitmap(DisplayMetrics, Int32[], Int32, Int32, Int32, Int32, Bitmap+Config)
Returns a immutable bitmap with the specified width and height, with each
pixel value set to the corresponding value in the colors array.
[Android.Runtime.Register("createBitmap", "(Landroid/util/DisplayMetrics;[IIIIILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;", "", ApiSince=17)]
public static Android.Graphics.Bitmap CreateBitmap (Android.Util.DisplayMetrics display, int[] colors, int offset, int stride, int width, int height, Android.Graphics.Bitmap.Config config);
static member CreateBitmap : Android.Util.DisplayMetrics * int[] * int * int * int * int * Android.Graphics.Bitmap.Config -> Android.Graphics.Bitmap
Parameters
Display metrics for the display this bitmap will be
drawn on.
colors
T:Android.Graphics._Color
offset
Number of values to skip before the first color in the
array of colors.
stride
Number of colors in the array between rows (must be >=
width or <= -width).
width
The width of the bitmap
height
The height of the bitmap
The bitmap config to create. If the config does not
support per-pixel alpha (e.g. RGB_565), then the alpha
bytes in the colors[] will be ignored (assumed to be FF)
Returns
Exceptions
if the width or height are <= 0, or if
the color array's length is less than the number of pixels.
Remarks
Portions of this page are modifications based on work created and shared by the
Applies to
CreateBitmap(Bitmap, Int32, Int32, Int32, Int32, Matrix, Boolean)
Returns an immutable bitmap from subset of the source bitmap,
transformed by the opti