Interface CameraComposer

  • All Known Implementing Classes:
    CameraComposer.CppProxy

    public interface CameraComposer
    Class, which provide camera composer algorithms adjust interface.
    • Method Detail

      • setBackgroundImage

        void setBackgroundImage​(@NonNull
                                java.lang.String path,
                                boolean play,
                                boolean loop)
        Pass empty path to reset background image. Supported extensions: jpg, jpeg, png, mp4, gif play and loop args only for video
      • setBackgroundImageByFd

        void setBackgroundImageByFd​(int fd)
      • setBackgroundVideoByFd

        void setBackgroundVideoByFd​(int fd,
                                    boolean play,
                                    boolean loop)
      • getBackgroundImage

        @Nullable
        Image getBackgroundImage()
      • getBackgroundVideo

        @Nullable
        Video getBackgroundVideo()
      • enableBlur

        void enableBlur​(boolean enable)
      • setBlurRadius

        void setBlurRadius​(int radius)
      • setBgTransparencyFactor

        void setBgTransparencyFactor​(float factor)
      • setRotation

        void setRotation​(float degrees)
      • setScale

        void setScale​(float x,
                      float y)
      • setContentMode

        void setContentMode​(int mode)
      • setBackgroundColor

        void setBackgroundColor​(float r,
                                float g,
                                float b,
                                float a)
      • setClearColor

        void setClearColor​(float r,
                           float g,
                           float b,
                           float a)
        Specifies the color of the area not covered by background texture (e.g. `contentMode` `FIT`). Black by default. Transparency (`a`) is a conventional argument only and currently ignored (use `1` for it).