Android.Graphics.Bitmap: Method Members

The methods of Android.Graphics.Bitmap are listed below. For a list of all members, see the Bitmap Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

Compress(Bitmap.CompressFormat, int, System.IO.Stream) : bool
Write a compressed version of the bitmap to the specified outputstream.
CompressAsync(Bitmap.CompressFormat, int, System.IO.Stream) : System.Threading.Tasks.Task<bool>
Documentation for this section has not yet been entered.
Copy(Bitmap.Config, bool) : Bitmap
Tries to make a new bitmap based on the dimensions of this bitmap, setting the new bitmap's config to the one specified, and then copying this bitmap's pixels into the new bitmap.
CopyPixelsFromBuffer(Java.Nio.Buffer)
CopyPixelsFromBufferAsync(Java.Nio.Buffer) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
CopyPixelsToBuffer(Java.Nio.Buffer)
CopyPixelsToBufferAsync(Java.Nio.Buffer) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
static
CreateBitmap(Bitmap) : Bitmap
Returns an immutable bitmap from the source bitmap.
static
CreateBitmap(int, int, Bitmap.Config) : Bitmap
Returns a mutable bitmap with the specified width and height.
static
CreateBitmap(Android.Util.DisplayMetrics, int, int, Bitmap.Config) : Bitmap
Returns a mutable bitmap with the specified width and height.
static
CreateBitmap(int[], int, int, Bitmap.Config) : Bitmap
Returns a immutable bitmap with the specified width and height, with each pixel value set to the corresponding value in the colors array.
static
CreateBitmap(Bitmap, int, int, int, int) : Bitmap
Returns an immutable bitmap from the specified subset of the source bitmap.
static
CreateBitmap(Android.Util.DisplayMetrics, int[], int, int, Bitmap.Config) : Bitmap
Returns a immutable bitmap with the specified width and height, with each pixel value set to the corresponding value in the colors array.
static
CreateBitmap(int[], int, int, int, int, Bitmap.Config) : Bitmap
Returns a immutable bitmap with the specified width and height, with each pixel value set to the corresponding value in the colors array.
static
CreateBitmap(Bitmap, int, int, int, int, Matrix, bool) : Bitmap
Returns an immutable bitmap from subset of the source bitmap, transformed by the optional matrix.
static
CreateBitmap(Android.Util.DisplayMetrics, int[], int, int, int, int, Bitmap.Config) : Bitmap
Returns a immutable bitmap with the specified width and height, with each pixel value set to the corresponding value in the colors array.
static
CreateScaledBitmap(Bitmap, int, int, bool) : Bitmap
Creates a new bitmap, scaled from an existing bitmap, when possible.
DescribeContents() : int
No special parcel contents.
EraseColor(int)
Fills the bitmap's pixels with the specified Android.Graphics._Color.
ExtractAlpha() : Bitmap
Returns a new bitmap that captures the alpha values of the original.
ExtractAlpha(Paint, int[]) : Bitmap
Returns a new bitmap that captures the alpha values of the original.
GetBitmapInfo() : AndroidBitmapInfo
Documentation for this section has not yet been entered.
GetConfig() : Bitmap.Config
If the bitmap's internal config is in one of the public formats, return that config, otherwise return null.
GetNinePatchChunk() : byte[]
Returns an optional array of private data, used by the UI system for some bitmaps.
GetPixel(int, int) : int
Returns the Android.Graphics._Color at the specified location.
GetPixels(int[], int, int, int, int, int, int)
Returns in pixels[] a copy of the data in the bitmap.
GetScaledHeight(Canvas) : int
Convenience for calling Bitmap.GetScaledHeight(int) with the target density of the given Android.Graphics.Canvas.
GetScaledHeight(Android.Util.DisplayMetrics) : int
Convenience for calling Bitmap.GetScaledHeight(int) with the target density of the given Android.Util.DisplayMetrics.
GetScaledHeight(int) : int
Convenience method that returns the height of this bitmap divided by the density scale factor.
GetScaledWidth(Canvas) : int
Convenience for calling Bitmap.GetScaledWidth(int) with the target density of the given Android.Graphics.Canvas.
GetScaledWidth(Android.Util.DisplayMetrics) : int
Convenience for calling Bitmap.GetScaledWidth(int) with the target density of the given Android.Util.DisplayMetrics.
GetScaledWidth(int) : int
Convenience method that returns the width of this bitmap divided by the density scale factor.
LockPixels() : IntPtr
Documentation for this section has not yet been entered.
PrepareToDraw()
Rebuilds any caches associated with the bitmap that are used for drawing it.
Reconfigure(int, int, Bitmap.Config)
Recycle()
Free the native object associated with this bitmap, and clear the reference to the pixel data.
SameAs(Bitmap) : bool
Given another bitmap, return true if it has the same dimensions, config, and pixel data as this bitmap.
SetConfig(Bitmap.Config)
SetPixel(int, int, Color)
SetPixels(int[], int, int, int, int, int, int)
UnlockPixels()
Documentation for this section has not yet been entered.
WriteToParcel(Android.OS.Parcel, Android.OS.ParcelableWriteFlags)
Write the bitmap and its pixels to the parcel.