Android Question Create a thumbnail - missing a library reference

Discussion in 'Android Questions' started by severika, May 4, 2015.

  1. severika

    severika Member Licensed User

    Hello,
    I found somewhere this code :

    Dim im As Image
    Dim can As Canvas
    im.Initialize("c:/temp/","jelly.png")' the image (150 x 150)
    Dim jo As JavaObject
    can.Initialize("")
    jo = can
    jo.RunMethod("setWidth",Array(75.0))
    jo.runmethod("setHeight",Array(75.0))
    can.DrawImage(im,0.0,0.0,75.0,75.0)
    Dim out As OutputStream = File.OpenOutput("c:/temp/", "jellyGrab.png", True)
    can.snapshot.WriteToStream(out)
    out.Close


    However, I receive the following error :

    Error description: Unknown type: image
    Are you missing a library reference?

    Any clues ? Which library should I include ?

    Thank you very much.
     
  2. walterf25

    walterf25 Well-Known Member Licensed User

    Image is not a type in Basic4Android, try changing it to Bitmap instead.

    Walter
     
  3. severika

    severika Member Licensed User

    thank you very much.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice