B4A Library LowPoly

This is a wrap for this github-project

LowPoly
Author:
DonManfred (wrapper)
Version: 1

  • Methods:
    • generate (input As Bitmap, blur As Int) As Bitmap

      input:
      blur:
      Return type: @return:
    • getTriangles (pixels() As Int, width As Int, height As Int, pointNum As Int) As Int[]
  • LowPoly
    Methods:
    • Initialize (EventName As String)
    • IsInitialized As Boolean
    • generate (input As Bitmap, blur As Int) As Bitmap
 

Attachments

  • LowPolyEx.zip
    37.9 KB · Views: 309
  • LowPolyV1.0.zip
    29.5 KB · Views: 293

Douglas Farias

Expert
Licensed User
Longtime User
Hi @DonManfred
i tested this lib, works ok on my samsung device with android 5.1.1
but on my sony e4 android 4.4 this crash on the initialize


here is the log
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "srand" referenced by "liblowpoly.so"...
at java.lang.Runtime.loadLibrary(Runtime.java:371)
at java.lang.System.loadLibrary(System.java:526)
at com.uniquestudio.lowpoly.LowPoly.<clinit>(LowPoly.java:14)
at de.donmanfred.LowPolyWrapper.Initialize(LowPolyWrapper.java:66)
at lowpoly.editor.id.main._activity_create(main.java:442)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:708)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:340)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at lowpoly.editor.id.main.afterFirstLayout(main.java:102)
at lowpoly.editor.id.main.access$000(main.java:17)
at lowpoly.editor.id.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5398)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:940)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **


thx
 

DonManfred

Expert
Licensed User
Longtime User
Looks like it does not work on 4.4
 
Top