Class PictureNatives


  • public class PictureNatives
    extends Object
    Native methods for Picture JNI registration.

    Native method signatures are derived from https://cs.android.com/android/platform/superproject/+/android-12.0.0_r1:frameworks/base/graphics/java/android/graphics/Picture.java

    • Constructor Detail

      • PictureNatives

        public PictureNatives()
    • Method Detail

      • nativeConstructor

        public static long nativeConstructor​(long nativeSrcOr0)
      • nativeCreateFromStream

        public static long nativeCreateFromStream​(InputStream stream,
                                                  byte[] storage)
      • nativeGetWidth

        public static int nativeGetWidth​(long nativePicture)
      • nativeGetHeight

        public static int nativeGetHeight​(long nativePicture)
      • nativeBeginRecording

        public static long nativeBeginRecording​(long nativeCanvas,
                                                int w,
                                                int h)
      • nativeEndRecording

        public static void nativeEndRecording​(long nativeCanvas)
      • nativeDraw

        public static void nativeDraw​(long nativeCanvas,
                                      long nativePicture)
      • nativeWriteToStream

        public static boolean nativeWriteToStream​(long nativePicture,
                                                  OutputStream stream,
                                                  byte[] storage)
      • nativeDestructor

        public static void nativeDestructor​(long nativePicture)