An object that holds a bitmap image. The bitmap can be loaded from a file or other input stream, or can be set from a different bitmap. Loading large bitmaps can easily lead to out of memory exceptions. This is true even if the file is compressed and not large as the bitmap is stored uncompressed in memory. For large images you can call InitializeSample and load a subsample of the image. The whole image will be loaded with a lower resolution.
A drawable that draws a bitmap. The bitmap is set during initialization. You can change the way the bitmap appears by changing the Gravity property. Example: DimbdAsBitmapDrawable bd.Initialize(LoadBitmap(File.DirAssets, "SomeImage.png"))
bd.Gravity = Gravity.FILL Activity.Background = bd This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
A Canvas is an object that draws on other views or (mutable) bitmaps. When the canvas is initialized and set to draw on a view, a new mutable bitmap is created for that view background, the current view's background is copied to the new bitmap and the canvas is set to draw on the new bitmap. The canvas drawings are not immediately updated on the screen. You should call the target view Invalidate method to make it refresh the view. This is useful as it allows you to make several drawings and only then refresh the display. The canvas can be temporary limited to a specific region (and thus only affect this region). This is done by calling ClipPath. Removing the clipping is done by calling RemoveClip. You can get the bitmap that the canvas draws on with the Bitmap property. This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
A drawable that has a solid color and can have round corners. Example: DimcdAsColorDrawable cd.Initialize(Colors.Green, 5dip)
Button1.Background = cd This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
A path is a collection of points that represent a connected path. The first point is set when it is initialized, and then other points are added with LineTo.
A drawable that holds other drawables and chooses the current one based on the view's state. See the StateListDrawable example. This is an 'Activity Object', it cannot be declared under Sub Process_Globals.