Skip to content

Commit 54e3d1c

Browse files
Update README.md
1 parent dd10f51 commit 54e3d1c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ ImgHelper ImageHelper = new ImgHelper(this);
214214

215215
- ***SetDPI*** - *Set DPI (depth per inch) for the image.*
216216
```java
217+
//JAVA
217218
ImageHelper.SetDPI(ImgHelper.DPI.DPI_200.ordinal());
218219
//OR
219220
ImageHelper.SetDPI(200);//int dpi_val = 150, 200, 300, 500, 600;
@@ -228,7 +229,7 @@ ImgHelper ImageHelper = new ImgHelper(this);
228229

229230
- ***GetThumbnail*** - *This method Will build thumbnail for the given image in custom width,height & AspectRatio.*
230231
```java
231-
232+
//JAVA
232233
Bitmap thumb = ImageHelper.GetThumbnail(ImageBitmap, 600, 600, true);
233234
/*
234235
Bitmap GetThumbnail(
@@ -238,6 +239,10 @@ ImgHelper ImageHelper = new ImgHelper(this);
238239
Boolean AspectRatio )throws ImgException.
239240
*/
240241
```
242+
```kotlin
243+
//Kotlin
244+
var thumb = ImageHelper!!.GetThumbnail(ImageBitmap, 600, 600, true);
245+
```
241246
- ***CompressToJPEG*** - *This method will Compress the provided bitmap image and will save to given path..*
242247
```java
243248

0 commit comments

Comments
 (0)