Skip to content

Commit

Permalink
photto BitmapType.TYPE_6 added
Browse files Browse the repository at this point in the history
  • Loading branch information
serifgungor committed Jan 6, 2022
1 parent 87cb5d1 commit 60a77da
Show file tree
Hide file tree
Showing 16 changed files with 323 additions and 67 deletions.
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

204 changes: 204 additions & 0 deletions .idea/intellij-javadocs-4.0.1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,18 +253,6 @@ File[] files = new File[]{
Bitmap b = new Photto.BitmapBuilder(getApplicationContext(),files,"", BitmapType.TYPE_5).build();
iv.setImageBitmap(b);
```
### Bitmap Type 6
![Photto Image Upload](/bitmapbuilder6.png)
```groovy
File[] files = new File[]{
new File("/storage/emulated/0/picture1.jpg"),
new File("/storage/emulated/0/picture2.jpg"),
new File("/storage/emulated/0/picture3.jpg"),
new File("/storage/emulated/0/picture4.jpg")
};
Bitmap b = new Photto.BitmapBuilder(getApplicationContext(),files,"", BitmapType.TYPE_6).build();
iv.setImageBitmap(b);
```

# Change Logs
## 26.07.2019
Expand All @@ -280,8 +268,6 @@ iv.setImageBitmap(b);
- The new version comes with the BitmapBuilder class. BitmapBuilder Type1, Type2 and Type3 is OK ! (27.02.2020)
- BitmapBuilder Type4 and Type5 is OK ! (02.03.2020)
# Maybe later... (0.6.0)
- Bitmap Type 6
# Maybe later... (0.7.0)
- You got a new idea? Send a message to: contact@serifgungor.com

Helpers
Expand Down
16 changes: 8 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 29
buildToolsVersion "29.0.1"
compileSdkVersion 31
buildToolsVersion "31"
defaultConfig {
applicationId "com.gungoronline.photto"
minSdkVersion 15
minSdkVersion 26
targetSdkVersion 29
versionCode 1
versionName "1.0"
Expand All @@ -22,10 +22,10 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation project(path: ':photto')
}
10 changes: 7 additions & 3 deletions app/src/main/java/com/gungoronline/photto/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ public class MainActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

File[] files = new File[]{new File("/storage/emulated/0/picture1.jpg"),new File("/storage/emulated/0/picture2.jpg")};
Bitmap b = new Photto.BitmapBuilder(getApplicationContext(),files,"", BitmapType.TYPE_3).build();
File[] files = new File[]{
new File("/storage/emulated/0/Download/p1.jpg"),
new File("/storage/emulated/0/Download/p2.jpg"),
new File("/storage/emulated/0/Download/p3.jpg"),
new File("/storage/emulated/0/Download/p4.jpg")
};
Bitmap b = new Photto.BitmapBuilder(getApplicationContext(),files,"@serifgungor", BitmapType.TYPE_6).build();
ImageView iv = new ImageView(getApplicationContext());
iv.setImageBitmap(b);

setContentView(iv);//R.layout.activity_main
}
}
Binary file removed bitmapbuilder6.png
Binary file not shown.
Loading

0 comments on commit 60a77da

Please sign in to comment.