2017-03-29 3 views
0
I want to change the background color for AVMutableVideoCompositionInstruction which is working fine.But in when I am using UIImage for Color Pattern its not Working ??? Please Help...here is code Image Using.also I am giving is BackgroundColor White but its not Showing it White. 

は、私が使用しています私のコードです:AVMutableVideoCompositionInstruction background UIImageを使用したカラー?ここ

AVMutableVideoCompositionInstruction *MainInstruction = [AVMutableVideoCompositionInstruction videoCompositionInstruction]; 
    MainInstruction.timeRange = CMTimeRangeMake(kCMTimeZero, asset.duration); 
    MainInstruction.layerInstructions = layerInstructionsArr; 
    UIColor *bgBlurrcolor =[UIColor colorWithPatternImage:[UIImage imageNamed:@"aa.png"]]; 
    MainInstruction.backgroundColor = bgBlurrcolor.CGColor; 

答えて

0

のみ固体BGRAの色がサポートされているこれらのリンクをチェックしてください。パターンやその他のサポートされている色は無視されます。レンダリングされたピクセルバッファにアルファがない場合、背景色のアルファ値は無視されます。 背景色がNULLの場合、ビデオコンポーザーは不透明な黒のデフォルトの背景色を使用します。

https://developer.apple.com/reference/avfoundation/avvideocompositioninstruction?language=objc

https://developer.apple.com/reference/avfoundation/avvideocompositioninstruction/1389384-backgroundcolor?language=objc

関連する問題