Applies a color filter to the specified bitmap that multiplies the RGB channels by one color, and then adds a second color, pinning the result for each component to [0..255].
BackgroundAsandroid.graphics.drawable.Drawable
Gets or sets the background drawable. Returns Null if there is no image.
BackgroundBitmapAsandroid.graphics.Bitmap
Gets or sets the background bitmap. Returns Null if the image is not a bitmap.
BitmapAsandroid.graphics.Bitmap
Gets or sets the foreground bitmap. Returns Null if the image is not a bitmap.
BringToFront
Changes the Z order of this view and brings it to the front.
ChangeAlpha (AlphaAsInt)
Changes the alpha value of the foreground image. Alpha an integer between 0 (fully transparent) and 255 (fully opaque).
ChangeBackgroundAlpha (AlphaAsInt)
Changes the alpha value of the background image. Alpha an integer between 0 (fully transparent) and 255 (fully opaque).
Gets or sets the foreground drawable. Returns Null if there is no image.
EnabledAsBoolean
Gets or sets whether this view is enabled (True) or disabled (False).
GravityAsInt
Gets or sets the gravity of the background image. Only bitmaps are affected by gravity.
HeightAsInt
Gets or sets the view's height.
Initialize (EventPrefixAsString)
Initializes the BetterImageView. EventPrefix prefix of events.
Invalidate
Invalidates the whole view forcing the view to redraw itself. Redrawing will only happen when the program can process messages. Usually when it finishes running the current code.
Invalidate2 (RectAsandroid.graphics.Rect)
Invalidates the given rectangle. Redrawing will only happen when the program can process messages. Usually when it finishes running the current code.
Loads and rescales a bitmap. Throws an exception if there's not enough memory to load the specified file. NewWidth: the new bitmap's desired width or -1 to keep the original width. NewHeight: the new bitmap's desired height or -1 to keep the original height. Filter: if True, improves the sampling quality.
Converts a bitmap from the format ARGB_8888 to the format RGB_565 to save memory. This function removes the alpha channel and therefore the transparent areas become opaque.
RemoveView
Removes this view from its parent.
RequestFocusAsBoolean
Tries to set the focus to this view. Returns True if the focus was set.
ScaleTypeAsandroid.widget.ImageView.ScaleType
Gets or sets how the foreground image should be resized or moved to match the size of this BetterImageView. The value is one of the SCALETYPE constants.