Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YuvImage yuvimage=new YuvImage(data,ImageFormat.NV21,this.width,this.height,null);
- System.out.println("WidthandHeight"+yuvimage.getHeight()+"::"+yuvimage.getWidth());
- ByteArrayOutputStream baos=new ByteArrayOutputStream();
- yuvimage.compressToJpeg(new Rect(0,0,this.width,this.height),100,baos);
- dos.write(baos.toByteArray());
- <img [src]="domSanitizer.bypassSecurityTrustUrl(image)">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement