Class PixelRef

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class PixelRef
    extends RefCnt
    • Constructor Detail

      • PixelRef

        @Internal
        public PixelRef​(long ptr)
    • Method Detail

      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()
      • getRowBytes

        public long getRowBytes()
      • getGenerationId

        public int getGenerationId()
        Returns a non-zero, unique value corresponding to the pixels in this pixelref. Each time the pixels are changed (and notifyPixelsChanged is called), a different generation ID will be returned.
      • notifyPixelsChanged

        public PixelRef notifyPixelsChanged()
        Call this if you have changed the contents of the pixels. This will in- turn cause a different generation ID value to be returned from getGenerationID().
      • isImmutable

        public boolean isImmutable()
        Returns true if this pixelref is marked as immutable, meaning that the contents of its pixels will not change for the lifetime of the pixelref.
      • setImmutable

        public PixelRef setImmutable()
        Marks this pixelref is immutable, meaning that the contents of its pixels will not change for the lifetime of the pixelref. This state can be set on a pixelref, but it cannot be cleared once it is set.
      • _nGetWidth

        @Internal
        public static int _nGetWidth​(long ptr)
      • _nGetHeight

        @Internal
        public static int _nGetHeight​(long ptr)
      • _nGetRowBytes

        @Internal
        public static long _nGetRowBytes​(long ptr)
      • _nGetGenerationId

        @Internal
        public static int _nGetGenerationId​(long ptr)
      • _nNotifyPixelsChanged

        @Internal
        public static void _nNotifyPixelsChanged​(long ptr)
      • _nIsImmutable

        @Internal
        public static boolean _nIsImmutable​(long ptr)
      • _nSetImmutable

        @Internal
        public static void _nSetImmutable​(long ptr)