Draw a Circle in a Bitmap
Press on the epitome to return to the main documentation page.
Cartoon (Cadre)
List of types:
BitmapBitmapDrawable
Canvas
ColorDrawable
GradientDrawable
Path
Rect
StateListDrawable
Bitmap
An object that holds a bitmap image. The bitmap tin be loaded from a file or other input stream, or can exist gear up from a different bitmap.Loading large bitmaps tin can easily lead to out of retentivity exceptions. This is true even if the file is compressed and not large equally the bitmap is stored uncompressed in retention.
For large images yous tin call InitializeSample and load a subsample of the prototype. The whole image will be loaded with a lower resolution.
Events:
NoneMembers:
Crop (Left As Int, Peak As Int, Width As Int, Height As Int) Every bit Bitmap
GetPixel (x As Int, y As Int) As Int
Elevation As Int [read but]
Initialize (Dir As String, FileName As Cord)
Initialize2 (InputStream As java.io.InputStream)
Initialize3 (Bitmap As android.graphics.Bitmap)
InitializeMutable (Width As Int, Acme Every bit Int)
InitializeResize (Dir As String, FileName As String, Width As Int, Height As Int, KeepAspectRatio As Boolean)
InitializeSample (Dir Every bit String, FileName As String, MaxWidth As Int, MaxHeight Equally Int)
IsInitialized As Boolean
Resize (Width Every bit Float, Elevation As Bladder, KeepAspectRatio As Boolean) Equally Bitmap
Rotate (Degrees As Bladder) Every bit Bitmap
Scale Equally Float [read just]
Width As Int [read only]
WriteToStream (OutputStream Every bit java.io.OutputStream, Quality As Int, Format As android.graphics.Bitmap.CompressFormat)
Members clarification:
Crop (Left As Int, Top As Int, Width As Int, Height Every bit Int) As Bitmap
Returns a new cropped bitmap.GetPixel (x As Int, y As Int) As Int
Returns the colour of the pixel at the specified position.Height Equally Int [read only]
Returns the bitmap summit.Initialize (Dir As String, FileName Equally String)
Initializes the bitmap from the given file.Note that the paradigm will be downsampled if in that location is non enough memory available.
Instance:
Dim Bitmap1 As Bitmap
Bitmap1.Initialize(File.DirAssets, "10.jpg")
Initialize2 (InputStream As java.io.InputStream)
Initializes the bitmap from the given stream.Initialize3 (Bitmap Equally android.graphics.Bitmap)
Initializes the bitmap with a copy of the original prototype (copying is washed if necessary).InitializeMutable (Width As Int, Height As Int)
Creates a new mutable bitmap with the specified dimensions. You tin use a Canvass object to draw on this bitmap.InitializeResize (Dir As String, FileName As String, Width As Int, Height Every bit Int, KeepAspectRatio Every bit Boolean)
Initializes the bitmap and sets its size.Note that the bitmap scale will be the same as the device scale.
InitializeSample (Dir Equally Cord, FileName As Cord, MaxWidth As Int, MaxHeight As Int)
Initializes the bitmap from the given file.The decoder will subsample the bitmap if MaxWidth or MaxHeight are smaller than the bitmap dimensions.
This can relieve a lot of memory when loading large images.
Note that the actual dimensions may exist larger than the specified values.
IsInitialized As Boolean
Resize (Width As Float, Elevation Every bit Bladder, KeepAspectRatio As Boolean) As Bitmap
Returns a new bitmap with the given width and height.Note that the bitmap scale will be the aforementioned as the device scale.
Rotate (Degrees As Float) As Bitmap
Returns a new rotated bitmap. The bitmap will be rotated clockwise.Scale Equally Float [read only]
Returns the bitmap calibration.Width As Int [read only]
Returns the bitmap width.WriteToStream (OutputStream Every bit java.io.OutputStream, Quality As Int, Format As android.graphics.Bitmap.CompressFormat)
Writes the bitmap to the output stream.Quality - Value between 0 (smaller size, lower quality) to 100 (larger size, higher quality),
which is a hint for the compressor for the required quality.
Format - JPEG or PNG.
Example:
Dim Out As OutputStream
Out = File.OpenOutput(File.DirRootExternal, "Exam.png", False)
Bitmap1.WriteToStream(out, 100, "PNG")
Out.Close
BitmapDrawable
A drawable that draws a bitmap. The bitmap is set during initialization.You tin change the way the bitmap appears by changing the Gravity property.
Example:
Dim bd As BitmapDrawable
bd.Initialize(LoadBitmap(File.DirAssets, "SomeImage.png"))
bd.Gravity = Gravity.Fill up
Activity.Background = bd
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
NoneMembers:
Bitmap As android.graphics.Bitmap [read only]
Gravity As Int
Initialize (Bitmap As android.graphics.Bitmap)
IsInitialized Equally Boolean
Members description:
Bitmap As android.graphics.Bitmap [read merely]
Returns the internal Bitmap.Gravity As Int
Gets or sets the gravity value. This value affects the way the epitome will exist drawn.Example:
BitmapDrawable1.Gravity = Gravity.Make full
Initialize (Bitmap Every bit android.graphics.Bitmap)
IsInitialized As Boolean
Sail
A Canvas is an object that draws on other views or (mutable) bitmaps.When the canvas is initialized and set to depict on a view, a new mutable bitmap is created for that view groundwork, the current view'southward background
is copied to the new bitmap and the sail is set to describe on the new bitmap.
The canvas drawings are non immediately updated on the screen. You should call the target view Invalidate method to make it refresh the view.
This is useful every bit information technology allows you to brand several drawings and merely and so refresh the display.
The canvas tin be temporary express to a specific region (and thus only touch this region). This is done by calling ClipPath. Removing the clipping is done by calling RemoveClip.
You can get the bitmap that the sheet draws on with the Bitmap belongings.
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
NoneMembers:
AntiAlias As Boolean
Bitmap Every bit Bitmap [read only]
ClipPath (Path1 As android.graphics.Path)
DrawBitmap (Bitmap1 Every bit android.graphics.Bitmap, SrcRect As android.graphics.Rect, DestRect As android.graphics.Rect)
DrawBitmapFlipped (Bitmap1 As android.graphics.Bitmap, SrcRect As android.graphics.Rect, DestRect As android.graphics.Rect, Vertically As Boolean, Horizontally Equally Boolean)
DrawBitmapRotated (Bitmap1 As android.graphics.Bitmap, SrcRect Equally android.graphics.Rect, DestRect As android.graphics.Rect, Degrees As Float)
DrawCircle (x Every bit Bladder, y As Float, Radius As Float, Color As Int, Filled Equally Boolean, StrokeWidth As Float)
DrawColor (Color As Int)
DrawDrawable (Drawable1 As android.graphics.drawable.Drawable, DestRect Equally android.graphics.Rect)
DrawDrawableRotate (Drawable1 Equally android.graphics.drawable.Drawable, DestRect As android.graphics.Rect, Degrees As Float)
DrawLine (x1 As Float, y1 As Float, x2 Equally Float, y2 As Float, Color Equally Int, StrokeWidth Every bit Bladder)
DrawOval (Rect1 As android.graphics.Rect, Color As Int, Filled As Boolean, StrokeWidth As Float)
DrawOvalRotated (Rect1 As android.graphics.Rect, Color Every bit Int, Filled As Boolean, StrokeWidth As Bladder, Degrees Every bit Bladder)
DrawPath (Path1 As android.graphics.Path, Color As Int, Filled Equally Boolean, StrokeWidth Every bit Float)
DrawPoint (x Every bit Float, y As Bladder, Color Every bit Int)
DrawRect (Rect1 As android.graphics.Rect, Color As Int, Filled As Boolean, StrokeWidth As Bladder)
DrawRectRotated (Rect1 As android.graphics.Rect, Colour As Int, Filled Equally Boolean, StrokeWidth As Bladder, Degrees Every bit Float)
DrawText (Text As Cord, x As Bladder, y As Bladder, Typeface1 As android.graphics.Typeface, TextSize Every bit Bladder, Color As Int, Align1 As android.graphics.Pigment.Align)
DrawTextRotated (Text As String, x Equally Float, y Every bit Float, Typeface1 As android.graphics.Typeface, TextSize As Float, Color As Int, Align1 As android.graphics.Pigment.Align, Degree As Float)
Initialize (Target As android.view.View)
Initialize2 (Bitmap As android.graphics.Bitmap)
MeasureStringHeight (Text As Cord, Typeface Equally android.graphics.Typeface, TextSize As Bladder) As Float
MeasureStringWidth (Text As String, Typeface As android.graphics.Typeface, TextSize As Float) As Float
RemoveClip
Members description:
AntiAlias Every bit Boolean
Gets or sets whether antialiasing will be applied.Bitmap Equally Bitmap [read only]
Returns the bitmap that the canvas draws to.Example: Saves the drawing to a file
Dim Out Every bit OutputStream
Out = File.OpenOutput(File.DirRootExternal, "Examination.png", False)
Canvas1.Bitmap.WriteToStream(out, 100, "PNG")
Out.Shut
ClipPath (Path1 As android.graphics.Path)
Clips the cartoon surface area to the given path. Example: Fills a diamond shape with gradient color.
Dim Gradient1 As GradientDrawable
Dim Clrs(two) As Int
Clrs(0) = Colors.Black
Clrs(1) = Colors.White
Gradient1.Initialize("TOP_BOTTOM", Clrs)
Dim Path1 As Path
Path1.Initialize(50%x, 100%y)
Path1.LineTo(100%x, 50%y)
Path1.LineTo(l%x, 0%y)
Path1.LineTo(0%x, 50%y)
Path1.LineTo(50%10, 100%y)
Canvas1.ClipPath(Path1) 'clip the drawing expanse to the path.
DestRect.Left = 0%y
DestRect.Top = 0%y
DestRect.Right = 100%x
DestRect.Bottom = 100%y
Canvas1.DrawDrawable(Gradient1, DestRect) 'fill the drawing expanse with the gradient.
Activity.Invalidate
DrawBitmap (Bitmap1 As android.graphics.Bitmap, SrcRect As android.graphics.Rect, DestRect As android.graphics.Rect)
Draws a bitmap.SrcRect - The subset of the bitmap that volition be drawn. If Null then the complete bitmap will be fatigued.
DestRect - The rectangle that the bitmap volition exist fatigued to.
Example:
Dim Bitmap1 As Bitmap
Bitmap1.Initialize(File.DirAssets, "Ten.jpg")
Dim DestRect As Rect
DestRect.Initialize(10dip, 10dip, 10dip + 100dip, 10dip + 100dip)
Canvas1.DrawBitmap(Bitmap1, Nix, DestRect) 'draws the bitmap to the destination rectangle.
Dim SrcRect As Rect
SrcRect.Initialize(0, 0, Bitmap1.Width / 2, Bitmap1.Height) 'the left half of the bitmap.
DestRect.Peak = 200dip
DestRect.Bottom = 200dip + 100dip
Canvas1.DrawBitmap(Bitmap1, SrcRect, DestRect) 'draws half of the bitmap.
Action.Invalidate
DrawBitmapFlipped (Bitmap1 Every bit android.graphics.Bitmap, SrcRect As android.graphics.Rect, DestRect As android.graphics.Rect, Vertically As Boolean, Horizontally Equally Boolean)
Flips the bitmap and draws it.SrcRect - The subset of the bitmap that will exist drawn. If Nix and so the complete bitmap will be drawn.
DestRect - The rectangle that the bitmap volition exist drawn to.
Vertically - Whether to flip the bitmap vertically.
Horizontally - Whether to flip the bitmap horizontally.
Example:
Canvas1.DrawBitmapFlipped(Bitmap1, Null, DestRect, Simulated, True)
DrawBitmapRotated (Bitmap1 Equally android.graphics.Bitmap, SrcRect As android.graphics.Rect, DestRect As android.graphics.Rect, Degrees As Bladder)
Rotates the bitmap and draws it.SrcRect - The subset of the bitmap that will be drawn. If Null and then the complete bitmap volition be drawn.
DestRect - The rectangle that the bitmap will be drawn to.
Degrees - Number of degrees to rotate the bitmap (clockwise).
Example:
Canvas1.DrawBitmapRotated(Bitmap1, Cypher, DestRect, lxx)
DrawCircle (x Equally Float, y As Float, Radius Equally Bladder, Color As Int, Filled As Boolean, StrokeWidth Every bit Float)
Draws a circle.Filled - Whether the circle will exist filled.
StrokeWidth - The stroke width. Relevant when Filled = False.
Example:
Canvas1.DrawCircle(150dip, 150dip, 20dip, Colors.Red, False, 10dip)
DrawColor (Color As Int)
Fills the entire canvas with the given colour.Example:
Canvas1.DrawColor(Colors.ARGB(100, 255, 0, 0)) 'fills with semi-transparent red colour.
Activity.Invalidate
DrawDrawable (Drawable1 As android.graphics.drawable.Drawable, DestRect As android.graphics.Rect)
Draws a Drawable into the specified rectangle. Example:
Dim Gradient1 As GradientDrawable
Dim Clrs(two) As Int
Clrs(0) = Colors.Greenish
Clrs(ane) = Colors.Blue
Gradient1.Initialize("TOP_BOTTOM", Clrs)
Canvas1.DrawDrawable(Gradient1, DestRect)
Action.Invalidate
DrawDrawableRotate (Drawable1 As android.graphics.drawable.Drawable, DestRect As android.graphics.Rect, Degrees Equally Float)
Rotates and draws a Drawable into the specified rectangle.Degrees - Number of degrees to rotate (clockwise).
DrawLine (x1 As Float, y1 As Float, x2 As Float, y2 Equally Float, Colour Equally Int, StrokeWidth Equally Float)
Draws a line from (x1, y1) to (x2, y2). StrokeWidth determines the width of the line.Example:
Canvas1.DrawLine(100dip, 100dip, 200dip, 200dip, Colors.Red, 10dip)
Activity.Invalidate
DrawOval (Rect1 As android.graphics.Rect, Color Equally Int, Filled As Boolean, StrokeWidth Every bit Float)
Draws an oval shape.Filled - Whether the rectangle volition be filled.
StrokeWidth - The stroke width. Relevant when Filled = Imitation.
Example:
Dim Rect1 As Rect
Rect1.Initialize(100dip, 100dip, 200dip, 150dip)
Canvas1.DrawOval(Rect1, Colors.Gray, False, 5dip)
Activity.Invalidate
DrawOvalRotated (Rect1 As android.graphics.Rect, Color As Int, Filled As Boolean, StrokeWidth As Float, Degrees As Float)
Rotates the oval and draws it.Filled - Whether the rectangle volition be filled.
StrokeWidth - The stroke width. Relevant when Filled = False.
Degrees - Number of degrees to rotate the oval (clockwise).
DrawPath (Path1 Equally android.graphics.Path, Color As Int, Filled As Boolean, StrokeWidth As Bladder)
Draws the path.Filled - Whether the path will be filled.
StrokeWidth - The stroke width. Relevant when Filled = Simulated.
Example:
Dim Path1 As Path
Path1.Initialize(50%x, 100%y)
Path1.LineTo(100%x, 50%y)
Path1.LineTo(50%10, 0%y)
Path1.LineTo(0%ten, 50%y)
Path1.LineTo(50%x, 100%y)
Canvas1.DrawPath(Path1, Colors.Magenta, Fake, 10dip)
DrawPoint (ten Every bit Bladder, y Every bit Float, Color Every bit Int)
Draws a point at the specified position and colour. Case:
Canvas1.DrawPoint(50%x, 50%y, Colors.Yellow) 'draws a point in the heart of the screen.
DrawRect (Rect1 Every bit android.graphics.Rect, Color As Int, Filled Every bit Boolean, StrokeWidth As Float)
Draws a rectangle.Filled - Whether the rectangle will be filled.
StrokeWidth - The stroke width. Relevant when Filled = False.
Instance:
Dim Rect1 As Rect
Rect1.Initialize(100dip, 100dip, 200dip, 150dip)
Canvas1.DrawRect(Rect1, Colors.Grayness, False, 5dip)
Activity.Invalidate
DrawRectRotated (Rect1 As android.graphics.Rect, Color As Int, Filled Equally Boolean, StrokeWidth As Float, Degrees As Float)
Rotates the rectangle and draws it.Filled - Whether the rectangle will be filled.
StrokeWidth - The stroke width. Relevant when Filled = Faux.
Degrees - Number of degrees to rotate the rectangle (clockwise).
DrawText (Text As Cord, ten Equally Float, y As Float, Typeface1 Equally android.graphics.Typeface, TextSize Every bit Float, Color As Int, Align1 Every bit android.graphics.Paint.Align)
Draws the text.Text - The text to exist drawn.
x, y - The origin indicate.
Typeface1 - Typeface (font) to utilize.
TextSize - This value will be automatically scaled so do not scale it yourself.
Color - Text color.
Marshal - The alignment related to the origin. One of the following values: "LEFT", "Centre", "Right".
Example:
Canvas1.DrawText("This is a nice sentence.", 200dip, 200dip, Typeface.DEFAULT_BOLD, 30, Colors.Blue, "LEFT")
DrawTextRotated (Text As Cord, x Equally Float, y As Float, Typeface1 Equally android.graphics.Typeface, TextSize Equally Float, Color As Int, Align1 As android.graphics.Pigment.Marshal, Caste As Float)
Rotates the text and draws it.Text - The text to be drawn.
ten, y - The origin indicate.
Typeface1 - Typeface (font) to use.
TextSize - This value volition be automatically scaled so exercise not scale it yourself.
Colour - Text colour.
Align - The alignment related to the origin. 1 of the following values: "LEFT", "Middle", "Right".
Degrees - Number of degrees to rotate (clockwise).
Case:
Canvas1.DrawTextRotated("This is a nice sentence.", 200dip, 200dip, _
Typeface.DEFAULT_BOLD, 30, Colors.Blue, "CENTER", -45)
Initialize (Target Every bit android.view.View)
Initializes the canvas for cartoon on a view.The view background volition be drawn on the sheet during initialization.
Notation that you lot should not change the view's background after calling this method.
Example:
Dim Canvas1 As Canvas
Canvas1.Initialize(Activity) 'this canvass volition draw on the activity groundwork
Initialize2 (Bitmap As android.graphics.Bitmap)
Initializes the canvas for cartoon on this bitmap.The bitmap must be mutable. Bitmaps created from files or input streams are Non mutable.
MeasureStringHeight (Text Every bit String, Typeface As android.graphics.Typeface, TextSize As Bladder) Every bit Bladder
Returns the height of the given text.Example of drawing a bluish text with white rectangle every bit the background:
Dim Rect1 Every bit Rect
Dim width, elevation Equally Bladder
Dim t As String
t = "Text to write"
width = Canvas1.MeasureStringWidth(t, Typeface.DEFAULT, 14)
height = Canvas1.MeasureStringHeight(t, Typeface.DEFAULT, 14)
Rect1.Initialize(100dip, 100dip, 100dip + width, 100dip + height)
Canvas1.DrawRect(Rect1, Colors.White, Truthful, 0)
Canvas1.DrawText(t, Rect1.Left, Rect1.Bottom, Typeface.DEFAULT, 14, Colors.Blue, "LEFT")
MeasureStringWidth (Text As String, Typeface As android.graphics.Typeface, TextSize As Float) As Bladder
Returns the width of the given text.Example of drawing a blue text with white rectangle as the background:
Dim Rect1 Every bit Rect
Dim width, height As Float
Dim t As Cord
t = "Text to write"
width = Canvas1.MeasureStringWidth(t, Typeface.DEFAULT, 14)
superlative = Canvas1.MeasureStringHeight(t, Typeface.DEFAULT, xiv)
Rect1.Initialize(100dip, 100dip, 100dip + width, 100dip + height)
Canvas1.DrawRect(Rect1, Colors.White, Truthful, 0)
Canvas1.DrawText(t, Rect1.Left, Rect1.Bottom, Typeface.DEFAULT, 14, Colors.Blue, "LEFT")
RemoveClip
Removes previous clipped region.ColorDrawable
A drawable that has a solid colour and can have round corners.Instance:
Dim cd Equally ColorDrawable
cd.Initialize(Colors.Green, 5dip)
Button1.Background = cd
This is an 'Activity Object', information technology cannot be declared nether Sub Process_Globals.
Events:
NoneMembers:
Initialize (Color Every bit Int, CornerRadius As Int)
Initialize2 (Color As Int, CornerRadius Every bit Int, BorderWidth As Int, BorderColor As Int)
IsInitialized Equally Boolean
Members description:
Initialize (Color Every bit Int, CornerRadius As Int)
Initializes the drawable with the given color and corners radius.Initialize2 (Color Every bit Int, CornerRadius As Int, BorderWidth As Int, BorderColor As Int)
IsInitialized As Boolean
GradientDrawable
A drawable that has a gradient color and can have round corners.This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
NoneMembers:
CornerRadius As Float [write merely]
Initialize (Orientation Equally android.graphics.drawable.GradientDrawable.Orientation, Colors() Every bit Int)
IsInitialized As Boolean
Members description:
CornerRadius As Float [write only]
Sets the radius of the "rectangle" corners.Set to 0 for square corners.
Example:
Gradient1.CornerRadius = 20dip
Initialize (Orientation As android.graphics.drawable.GradientDrawable.Orientation, Colors() As Int)
Initializes this object.Orientation - The slope orientation. Tin be one of the post-obit value:
"TOP_BOTTOM"
"TR_BL" (Top-Right to Bottom-Left)
"RIGHT_LEFT"
"BR_TL" (Bottom-Right to Top-Left)
"BOTTOM_TOP"
"BL_TR" (Bottom-Left to Top-Right)
"LEFT_RIGHT"
"TL_BR" (Summit-Left to Lesser-Correct)
Colors - An array with the gradient colors.
Case:
Dim Gradient1 As GradientDrawable
Dim Clrs(ii) As Int
Clrs(0) = Colors.Black
Clrs(1) = Colors.White
Gradient1.Initialize("TOP_BOTTOM", Clrs)
IsInitialized Equally Boolean
Path
A path is a collection of points that represent a connected path.The showtime point is ready when it is initialized, and and then other points are added with LineTo.
Events:
NoneMembers:
Initialize (x As Float, y As Float)
IsInitialized Every bit Boolean
LineTo (x Equally Float, y Equally Float)
Members description:
Initialize (x As Bladder, y As Float)
Initializes the path and sets the value of the first signal.IsInitialized As Boolean
LineTo (x Every bit Float, y As Float)
Adds a line from the last bespeak to the specified point.Rect
Holds four coordinates which stand for a rectangle.Events:
NoneMembers:
Lesser As Int
CenterX As Int [read only]
CenterY As Int [read only]
Tiptop Every bit Int
Initialize (Left Equally Int, Summit Every bit Int, Correct As Int, Bottom As Int)
IsInitialized Every bit Boolean
Left Every bit Int
Correct As Int
Meridian Equally Int
Width As Int
Members description:
Bottom Equally Int
CenterX As Int [read simply]
Returns the horizontal center.CenterY As Int [read simply]
Returns the vertical center.Height As Int
Gets or sets the rectangle height.Initialize (Left As Int, Top As Int, Right As Int, Lesser As Int)
IsInitialized As Boolean
Left As Int
Right As Int
Elevation As Int
Width Equally Int
Gets or sets the rectangle width.StateListDrawable
A drawable that holds other drawables and chooses the electric current one based on the view'due south state.See the StateListDrawable example.
This is an 'Activity Object', information technology cannot be declared under Sub Process_Globals.
Events:
NoneMembers:
AddCatchAllState (Drawable Every bit android.graphics.drawable.Drawable)
AddState (State Equally Int, Drawable As android.graphics.drawable.Drawable)
AddState2 (State() As Int, Drawable As android.graphics.drawable.Drawable)
Initialize
IsInitialized Equally Boolean
State_Checked Equally Int
State_Disabled Equally Int
State_Enabled Every bit Int
State_Focused Every bit Int
State_Pressed Equally Int
State_Selected Equally Int
State_Unchecked As Int
Members clarification:
AddCatchAllState (Drawable As android.graphics.drawable.Drawable)
Adds the drawable that will be used if no other country matched the current country.This should always be the last country (states added after this one will never be used).
AddState (State Every bit Int, Drawable Every bit android.graphics.drawable.Drawable)
Adds a state and drawable pair.Note that the gild of states is very of import. The first land that matches will be used.
AddState2 (Land() As Int, Drawable Every bit android.graphics.drawable.Drawable)
Adds a state and drawable pair. The state is made from a combination of states.Yous should non reuse the array specified as information technology is used internally past StateListDrawable.
Annotation that the club of states is very important. The first state that matches will exist used.
Initialize
Initializes the object.Case:
Dim Button1 As Button
Button1.Initialize("")
Dim sld Every bit StateListDrawable
sld.Initiailize
sld.AddState (sld.State_Disabled, DisabledDrawable)
sld.AddState (sld.State_Pressed, PressedDrawable)
sld.AddCatchAllState (DefaultDrawable)
Button1.Background = sld
IsInitialized As Boolean
State_Checked As Int
State_Disabled Equally Int
State_Enabled As Int
State_Focused As Int
State_Pressed As Int
State_Selected Every bit Int
State_Unchecked Equally Int
Top
wallerappruirenve.blogspot.com
Source: https://www.b4x.com/android/help/drawing.html
0 Response to "Draw a Circle in a Bitmap"
Post a Comment