public static Bitmap CreateBitmap (Int32 colors, Int32 width, Int32 height, Bitmap+Config config)
- Array of _Color used to initialize the pixels. This array must be at least as large as width * height.
- The width of the bitmap
- 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)
Type Reason IllegalArgumentException if the width or height are <= 0, or if the color array's length is less than the number of pixels.
Returns a immutable bitmap with the specified width and height, with each pixel value set to the corresponding value in the colors array. Its initial density is as per Bitmap.Density.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1