Banuba SDK
Instance Methods | List of all members
BNBCameraComposer Class Reference

#import <BNBCameraComposer.h>

Inheritance diagram for BNBCameraComposer:

Instance Methods

(void) - setBackgroundImage:play:loop:
 Pass empty path to reset background image. More...
 
(void) - setBackgroundImageByFd:
 
(void) - setBackgroundVideoByFd:play:loop:
 
(nullable BNBImage *) - getBackgroundImage
 
(nullable BNBVideo *) - getBackgroundVideo
 
(void) - enableBlur:
 
(void) - setBlurRadius:
 
(void) - setBgTransparencyFactor:
 
(void) - setRotation:
 
(void) - setScale:y:
 
(void) - setContentMode:
 
(void) - setBackgroundColor:g:b:a:
 
(void) - setClearColor:g:b:a:
 Specifies the color of the area not covered by background texture (e.g. More...
 

Detailed Description

Definition at line 16 of file BNBCameraComposer.h.

Method Documentation

◆ enableBlur:

- (void) enableBlur: (BOOL)  enable

◆ getBackgroundImage

- (nullable BNBImage *) getBackgroundImage

◆ getBackgroundVideo

- (nullable BNBVideo *) getBackgroundVideo

◆ setBackgroundColor:g:b:a:

- (void) setBackgroundColor: (float)  r
g: (float)  g
b: (float)  b
a: (float)  a 

◆ setBackgroundImage:play:loop:

- (void) setBackgroundImage: (nonnull NSString *)  path
play: (BOOL)  play
loop: (BOOL)  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: (int32_t)  fd

◆ setBackgroundVideoByFd:play:loop:

- (void) setBackgroundVideoByFd: (int32_t)  fd
play: (BOOL)  play
loop: (BOOL)  loop 

◆ setBgTransparencyFactor:

- (void) setBgTransparencyFactor: (float)  factor

◆ setBlurRadius:

- (void) setBlurRadius: (int32_t)  radius

◆ setClearColor:g:b:a:

- (void) setClearColor: (float)  r
g: (float)  g
b: (float)  b
a: (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).

◆ setContentMode:

- (void) setContentMode: (int32_t)  mode

◆ setRotation:

- (void) setRotation: (float)  degrees

◆ setScale:y:

- (void) setScale: (float)  x
y: (float)  y 

The documentation for this class was generated from the following file: