Android Question Image

Do you mean create an image instead of loading one in from a file? You can initialize a bitmap with InitializeMutable and attach it to the imageview.
Code: Copy
Sub Globals
   'These global variables will be redeclared each time the activity is created.
   'These variables can only be accessed from this module.
   Dim imvMyImageView As ImageView
   Dim bmpMyBitmap As Bitmap

End Sub

Sub Activity_Create(FirstTime As Boolean)
   'Do not forget to load the layout file created with the visual designer. For example:
   'Activity.LoadLayout("Layout1")
   imvMyImageView.Initialize("IV") 'initialize the imageview
   bmpMyBitmap.InitializeMutable(128,128) 'initialize the bitmap with size of 128 x 128
   imvMyImageView.Bitmap = bmpMyBitmap 'attach the bitmap to the imageview
   Activity.AddView(imvMyImageView,0,0,128,128) 'attach the imageview to the activity

End Sub
 
Upvote 0
In my database table i am having image column. if the user selects the image then that image will be stored in that column. my question is how store the image if the user has not selected it..
 
Upvote 0
Back
Top