use of org.reactnative.camera.utils.ImageDimensions in project react-native-camera by lwansbrough.
the class RNFrameFactory method buildFrame.
public static RNFrame buildFrame(Bitmap bitmap) {
ImageDimensions dimensions = new ImageDimensions(bitmap.getWidth(), bitmap.getHeight());
InputImage image = InputImage.fromBitmap(bitmap, 0);
return new RNFrame(image, dimensions);
}
Aggregations