Open SPATAN18 opened 6 years ago
I made the following changes in /android/src/main/java/com/sketchView/SketchViewContainer.java
Replace openSketchFile function with
public boolean openSketchFile(String localFilePath) {
BitmapFactory.Options bmOptions = new BitmapFactory.Options();
Bitmap bitmap = BitmapFactory.decodeFile(localFilePath,bmOptions);
Bitmap bMapScaled = Bitmap.createScaledBitmap(bitmap, 1000, 800, true);
if(bMapScaled != null) {
sketchView.setViewImage(bMapScaled);
return true;
}
return false;
}
1000 and 800 can be replaced with the required width and height
I am trying to pass the file path in localSourceImagePath but it is not working. Steps I am following